diff --git a/railties/lib/dispatcher.rb b/railties/lib/dispatcher.rb index 140d8e84a39a728802d9be16d64e3e2239ec5123..2a0765a932bb770d7cba7cfb6463a20014127815 100644 --- a/railties/lib/dispatcher.rb +++ b/railties/lib/dispatcher.rb @@ -51,6 +51,7 @@ def reset_application Dependencies.remove_subclasses_for(ActiveRecord::Base, ActiveRecord::Observer, ActionController::Base) end + ActiveRecord::Base.connection.clear_query_cache Breakpoint.deactivate_drb if defined?(BREAKPOINT_SERVER_PORT) end end