aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/application/routes_reloader.rb
Commit message (Collapse)AuthorAgeFilesLines
* Refactored routes reloading to use RouteSet#append instead keeping block in ↵Piotr Sarnacki2010-10-081-18/+6
| | | | | | Engine Signed-off-by: José Valim <jose.valim@gmail.com>
* reload_routes! is part of the public API and should not be removed.José Valim2010-10-021-2/+4
|
* Moved Rails::RoutesReloader to Rails::Application::RoutesReloaderPiotr Sarnacki2010-09-301-0/+55
|
* Use the new ActiveSupport::FileUpdateChecker instead of RoutesReloader.José Valim2010-06-201-46/+0
|
* Replace the placeholder base_hook API with on_load. To specify some code thatwycats2010-03-291-1/+1
| | | | | | | | should run during framework load do: ActiveSupport.on_load(:action_controller) do # Code run in the context of AC::Base end
* Make many parts of Rails lazy. In order to facilitate this,wycats2010-03-071-1/+1
| | | | | | | | | | | | 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
* Refactor MetalLoader and RoutesReloader to rely less on class configuration.José Valim2010-01-281-8/+5
| | | | Signed-off-by: Carl Lerche <carllerche@mac.com>
* Ensure metals and initializers in plugins are loaded.José Valim2010-01-241-7/+7
|
* Solve some pendencies.José Valim2010-01-241-7/+6
|
* Extract Railtie load from application.José Valim2010-01-231-5/+9
|
* Extract routes reloading responsibilities from application and load them ↵José Valim2010-01-231-0/+46
just upon a request.