aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/application/routes_reloader.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable `Layout/EmptyLinesAroundAccessModifier` copRyuta Kamizono2019-06-131-1/+0
| | | | | | | | | | | We sometimes say "✂️ newline after `private`" in a code review (e.g. https://github.com/rails/rails/pull/18546#discussion_r23188776, https://github.com/rails/rails/pull/34832#discussion_r244847195). Now `Layout/EmptyLinesAroundAccessModifier` cop have new enforced style `EnforcedStyle: only_before` (https://github.com/rubocop-hq/rubocop/pull/7059). That cop and enforced style will reduce the our code review cost.
* Only execute route updater once on app bootJonathan Boler2018-06-191-5/+1
|
* Eager load routes on rebuildJonathan Boler2018-06-041-14/+2
|
* Adding frozen_string_literal pragma to Railties.Pat Allan2017-08-141-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Fully initialize routes before the first request is handledJean Boussier2017-01-181-1/+16
| | | | | | | | | | | | `AD::Journey::GTG::Simulator` is lazily built the first time `Journey::Router#find_routes` is invoked, which happens when the first request is served. On large applications with many routes, building the simulator can take several hundred milliseconds (~700ms for us). Triggering this initialization during the boot process reduces the impact of deploys on the application response time.
* Pass symbol as an argument instead of a blockErik Michaels-Ober2014-11-291-3/+1
|
* Use Ruby 1.9 Hash syntax in railtiesRobin Dupret2012-10-141-1/+1
|
* Revert "Allow loading external route files from the router"José Valim2012-06-291-9/+4
| | | | | | | | | | | | | | This reverts commit 6acebb38bc0637bc05c19d87f8767f16ce79189b. Usage of this feature did not reveal any improvement in existing apps. Conflicts: actionpack/lib/action_dispatch/routing/mapper.rb guides/source/routing.textile railties/lib/rails/engine.rb railties/lib/rails/paths.rb railties/test/paths_test.rb
* 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.