diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/dispatcher.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/railties/lib/dispatcher.rb b/railties/lib/dispatcher.rb index 735d8f5c87..cb1289957e 100644 --- a/railties/lib/dispatcher.rb +++ b/railties/lib/dispatcher.rb @@ -55,13 +55,10 @@ class Dispatcher ActiveRecord::Base.reset_subclasses if defined?(ActiveRecord) Dependencies.clear - ActiveSupport::Deprecation.silence do # TODO: Remove after 1.2 - Class.remove_class(*Reloadable.reloadable_classes) - end - + ActiveRecord::Base.clear_reloadable_connections! if defined?(ActiveRecord) end - + # Add a preparation callback. Preparation callbacks are run before every # request in development mode, and before the first request in production # mode. |