░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/vendor/bundle/ruby/3.1.0/gems/switchman-3.5.1/lib
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: switchman.rb
# frozen_string_literal: true require "guard_rail" require "zeitwerk" class SwitchmanInflector < Zeitwerk::GemInflector def camelize(basename, abspath) if basename =~ /\Apostgresql_(.*)/ "PostgreSQL" + super($1, abspath) else super end end end loader = Zeitwerk::Loader.for_gem loader.inflector = SwitchmanInflector.new(__FILE__) loader.setup module Switchman Deprecation = ::ActiveSupport::Deprecation.new("4.0", "Switchman") def self.config # TODO: load from yaml @config ||= {} end def self.cache (@cache.respond_to?(:call) ? @cache.call : @cache) || ::Rails.cache end def self.cache=(cache) @cache = cache end def self.foreign_key_check(name, type, limit: nil) return unless name.to_s.end_with?("_id") && type.to_s == "integer" && limit.to_i < 8 puts <<~TEXT.squish WARNING: All foreign keys need to be 8-byte integers. #{name} looks like a foreign key. If so, please add the option: `:limit => 8` TEXT end class OrderOnMultiShardQuery < RuntimeError; end end # Load the engine and everything associated at gem load time Switchman::Engine
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📁 switchman/
DIR
—
2023-09-24 03:48
📁 tasks/
DIR
—
2023-09-24 03:48
📄 switchman.rb
RB
1.1 KB
2023-09-24 03:48
EDIT