diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-27 17:39:35 +0100 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-01-28 10:28:40 -0800 |
commit | 226d8e745a0d47efa50633661a2b7fe1859609bc (patch) | |
tree | 3acf231ae9a3dc29bb44e59d34161abfc2eb9f5c /railties/lib/rails/application/finisher.rb | |
parent | 252911e37897e1fd6f353f8e2002de3031275612 (diff) | |
download | rails-226d8e745a0d47efa50633661a2b7fe1859609bc.tar.gz rails-226d8e745a0d47efa50633661a2b7fe1859609bc.tar.bz2 rails-226d8e745a0d47efa50633661a2b7fe1859609bc.zip |
Refactor MetalLoader and RoutesReloader to rely less on class configuration.
Signed-off-by: Carl Lerche <carllerche@mac.com>
Diffstat (limited to 'railties/lib/rails/application/finisher.rb')
-rw-r--r-- | railties/lib/rails/application/finisher.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/application/finisher.rb b/railties/lib/rails/application/finisher.rb index d67420938a..c0b16a0090 100644 --- a/railties/lib/rails/application/finisher.rb +++ b/railties/lib/rails/application/finisher.rb @@ -15,9 +15,9 @@ module Rails end end - initializer :add_builtin_route do + initializer :add_builtin_route do |app| if Rails.env.development? - Rails::Application::RoutesReloader.paths << File.join(RAILTIES_PATH, 'builtin', 'routes.rb') + app.routes_reloader.paths << File.join(RAILTIES_PATH, 'builtin', 'routes.rb') end end |