File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
actionpack/lib/action_controller Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -88,16 +88,15 @@ def _call(env)
88
88
end
89
89
90
90
def reload_application
91
+ # Cleanup the application before processing the current request.
92
+ ActiveRecord ::Base . reset_subclasses if defined? ( ActiveRecord )
93
+ ActiveSupport ::Dependencies . clear
94
+ ActiveRecord ::Base . clear_reloadable_connections! if defined? ( ActiveRecord )
95
+
91
96
# Run prepare callbacks before every request in development mode
92
97
run_callbacks :prepare_dispatch
93
98
94
99
Routing ::Routes . reload
95
-
96
- # Cleanup the application by clearing out loaded classes so they can
97
- # be reloaded on the next request without restarting the server.
98
- ActiveRecord ::Base . reset_subclasses if defined? ( ActiveRecord )
99
- ActiveSupport ::Dependencies . clear
100
- ActiveRecord ::Base . clear_reloadable_connections! if defined? ( ActiveRecord )
101
100
end
102
101
103
102
def flush_logger
You can’t perform that action at this time.
0 commit comments