diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-23 15:05:13 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-23 16:06:33 +0100 |
commit | 80130d1201c3bf9dc17b0e1fcd81c6b22e893b0a (patch) | |
tree | 993d70e97ada23d2860969b24befbde64bd82e4b /railties/lib/rails/plugin.rb | |
parent | 4eab3aad8d256b868390b739b075bd38661339b2 (diff) | |
download | rails-80130d1201c3bf9dc17b0e1fcd81c6b22e893b0a.tar.gz rails-80130d1201c3bf9dc17b0e1fcd81c6b22e893b0a.tar.bz2 rails-80130d1201c3bf9dc17b0e1fcd81c6b22e893b0a.zip |
Extract routes reloading responsibilities from application and load them just upon a request.
Diffstat (limited to 'railties/lib/rails/plugin.rb')
-rw-r--r-- | railties/lib/rails/plugin.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/lib/rails/plugin.rb b/railties/lib/rails/plugin.rb index dde06bfcbd..43632127fc 100644 --- a/railties/lib/rails/plugin.rb +++ b/railties/lib/rails/plugin.rb @@ -60,8 +60,7 @@ module Rails initializer :add_routing_file, :after => :initialize_routing do |app| routing_file = "#{path}/config/routes.rb" if File.exist?(routing_file) - app.route_configuration_files << routing_file - app.reload_routes! + app.config.action_dispatch.route_files.unshift(routing_file) end end end |