Skip to content

Commit 89bd008

Browse files
committed
Do not use symbolize_keys! but just symbolize_keys since config could be hash with indifferent access.
1 parent 0642e76 commit 89bd008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_record/connection_adapters/sqlserver_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module ActiveRecord
1717
class Base
1818

1919
def self.sqlserver_connection(config) #:nodoc:
20-
config = config.dup.symbolize_keys!
20+
config = config.symbolize_keys
2121
config.reverse_merge! :mode => :dblib, :host => 'localhost', :username => 'sa', :password => ''
2222
mode = config[:mode].to_s.downcase.underscore.to_sym
2323
case mode

0 commit comments

Comments
 (0)