mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
remove patches that have been upstreamed
clean up rails4 checks so they are consistent
This commit is contained in:
@@ -97,7 +97,7 @@ module RailsMultisite
|
||||
# see: https://github.com/rails/rails/issues/8344#issuecomment-10800848
|
||||
#
|
||||
@@default_connection_handler = ActiveRecord::Base.connection_handler
|
||||
ActiveRecord::Base.send :include, NewConnectionHandler
|
||||
ActiveRecord::Base.send :include, NewConnectionHandler if ActiveRecord::VERSION::MAJOR == 3
|
||||
ActiveRecord::Base.connection_handler = @@default_connection_handler
|
||||
@@connection_handlers = {}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user