instance method
cleanup_application
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3Signature
cleanup_application()
Cleanup the application by clearing out loaded classes so they can be reloaded on the next request without restarting the server.
Source
# File actionpack/lib/action_controller/dispatcher.rb, line 156
def cleanup_application
ActiveRecord::Base.reset_subclasses if defined?(ActiveRecord)
ActiveSupport::Dependencies.clear
ActiveRecord::Base.clear_reloadable_connections! if defined?(ActiveRecord)
end
Defined in actionpack/lib/action_controller/dispatcher.rb line 156
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Dispatcher