Cleanup the application by clearing out loaded classes so they can be reloaded on the next request without restarting the server.
Source Code
# File action_controller/dispatcher.rb, line 149 def cleanup_application(force = false) if Dependencies.load? || force ActiveRecord::Base.reset_subclasses if defined?(ActiveRecord) Dependencies.clear ActiveRecord::Base.clear_reloadable_connections! if defined?(ActiveRecord) end end
<code/>and<pre/>for code samples.