public Method

Dispatcher.prepare_application(force = false)

There's no documentation for this item.

Source Code

# File action_controller/dispatcher.rb, line 131
def prepare_application(force = false)
  begin
    require_dependency 'application' unless defined?(::ApplicationController)
  rescue LoadError => error
    raise unless error.message =~ /application\.rb/
  end

  ActiveRecord::Base.verify_active_connections! if defined?(ActiveRecord)

  if unprepared || force
    run_callbacks :prepare_dispatch
    ActionView::TemplateFinder.reload! unless ActionView::Base.cache_template_loading
    self.unprepared = false
  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.