Module: ActiveRecord::ConnectionHandling
- Defined in:
 - lib/active_record/sqlserver_base.rb
 
Instance Method Summary collapse
Instance Method Details
#sqlserver_connection(config) ⇒ Object
:nodoc:
      5 6 7 8 9 10 11 12 13 14 15 16  | 
    
      # File 'lib/active_record/sqlserver_base.rb', line 5 def sqlserver_connection(config) #:nodoc: config = config.symbolize_keys config.reverse_merge!(mode: :dblib) config[:mode] = config[:mode].to_s.downcase.underscore.to_sym ConnectionAdapters::SQLServerAdapter.new( ConnectionAdapters::SQLServerAdapter.new_client(config), logger, nil, config ) end  |