Skip to content

Commit d94599b

Browse files
author
Jippe Holwerda
committed
Use proper module for the sqlserver_connection method consistent with how other adapters work.
1 parent dca09a0 commit d94599b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/active_record/sqlserver_base.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module ActiveRecord
2-
class Base
3-
4-
def self.sqlserver_connection(config) #:nodoc:
2+
module ConnectionHandling
3+
def sqlserver_connection(config) #:nodoc:
54
config = config.symbolize_keys
65
config.reverse_merge! mode: :dblib
76
mode = config[:mode].to_s.downcase.underscore.to_sym
@@ -17,6 +16,5 @@ def self.sqlserver_connection(config) #:nodoc:
1716
end
1817
ConnectionAdapters::SQLServerAdapter.new(nil, logger, nil, config.merge(mode: mode))
1918
end
20-
2119
end
2220
end

0 commit comments

Comments
 (0)