remove patches that have been upstreamed

clean up rails4 checks so they are consistent
This commit is contained in:
Sam
2013-09-12 15:39:02 +10:00
parent 00951e0578
commit 691377b5af
6 changed files with 23 additions and 77 deletions

View File

@@ -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