aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/application/routes_reloader.rb
Commit message (Collapse)AuthorAgeFilesLines
* Refactor RoutesReloader a bit to avoid creating extra hash objectsCarlos Antonio da Silva2012-04-281-3/+2
|
* Routes reloader knows how to reload external filesYehuda Katz2012-04-251-4/+10
|
* We should finalize the routes as soon as possible and not wait for the ↵José Valim2012-01-061-1/+1
| | | | controller to be loaded.
* FileUpdateChecker should be able to handle deleted files.José Valim2011-12-131-4/+11
|
* Clean up FileUpdateChecker API.José Valim2011-12-131-4/+4
|
* Speed up development by only reloading classes if dependencies files changed.José Valim2011-12-121-8/+4
| | | | | | | | This can be turned off by setting `config.reload_classes_only_on_change` to false. Extensions like Active Record should add their respective files like db/schema.rb and db/structure.sql to `config.watchable_files` if they want their changes to affect classes reloading. Thanks to https://github.com/paneq/active_reload and Pastorino for the inspiration. <3
* Composition > inheritance.José Valim2011-12-121-3/+11
|
* 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.