public Method

Dispatcher.cleanup_application(force = false)

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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.