…figuration in request.env. This is another step forward removing global configuration.
…ode that should run during framework load do: ActiveSupport.on_load(:action_controller) do # Code run in the context of AC::Base end
…t, remove railtie_name and engine_name and allow to set the configuration object.
…e named :railtie, :engine and so on.
add lazy_load_hooks.rb, which allows us to declare code that should be run at some later time. For instance, this allows us to defer requiring ActiveRecord::Base at boot time purely to apply configuration. Instead, we register a hook that should apply configuration once ActiveRecord::Base is loaded. With these changes, brings down total boot time of a new app to 300ms in production and 400ms in dev. TODO: rename base_hook
…ensures deep nesting works in controllers.
Ruby 1.9 regression. This reverts commit 76237f1.
Signed-off-by: José Valim <email@example.com>
…de the application) and use Rails::Application.root instead of ROOT_PATH.
…on paths. Signed-off-by: Carl Lerche <firstname.lastname@example.org>
…ration. Signed-off-by: Carl Lerche <email@example.com>
…cade if any metal was declared.