Sha256: 045893424cf28e3e7ef33671957968dbd7f6465e1e51fccf28748b08bbbad951

Contents?: true

Size: 331 Bytes

Versions: 15

Compression:

Stored size: 331 Bytes

Contents

module ActiveRecord
  class Base
    def self.modify_config_connection(config)
      ConnectionAdapters::ModifyConfigAdapter.new(config)
    end
  end

  module ConnectionAdapters
    class ModifyConfigAdapter < AbstractAdapter
      def initialize(config)
        config.replace(config.symbolize_keys)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
ar-octopus-ruby-3-0.11.3 spec/support/active_record/connection_adapters/modify_config_adapter.rb
ar-octopus-ruby-3-0.11.2 spec/support/active_record/connection_adapters/modify_config_adapter.rb
ar-octopus-0.10.2 spec/support/active_record/connection_adapters/modify_config_adapter.rb
ar-octopus-0.10.1 spec/support/active_record/connection_adapters/modify_config_adapter.rb
ar-octopus-0.10.0 spec/support/active_record/connection_adapters/modify_config_adapter.rb
ar-octopus-master-0.9.2.1 spec/support/active_record/connection_adapters/modify_config_adapter.rb
ar-octopus-0.9.2 spec/support/active_record/connection_adapters/modify_config_adapter.rb
ar-octopus-0.9.1 spec/support/active_record/connection_adapters/modify_config_adapter.rb
ar-octopus-0.9.0 spec/support/active_record/connection_adapters/modify_config_adapter.rb
ar-octopus-0.8.6 spec/support/active_record/connection_adapters/modify_config_adapter.rb
misha-ar-octopus-0.8.7 spec/support/active_record/connection_adapters/modify_config_adapter.rb
misha-ar-octopus-0.8.5 spec/support/active_record/connection_adapters/modify_config_adapter.rb
ar-octopus-0.8.5 spec/support/active_record/connection_adapters/modify_config_adapter.rb
ar-octopus-0.8.4 spec/support/active_record/connection_adapters/modify_config_adapter.rb
ar-octopus-0.8.3 spec/support/active_record/connection_adapters/modify_config_adapter.rb