diff options
author | Vipul A M <vipulnsward@gmail.com> | 2014-12-26 10:38:00 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2014-12-26 10:38:00 +0530 |
commit | 1faa00c9ece9c94784dbfab181d10924c50d2036 (patch) | |
tree | 312e3d567b8df295a1b880a0d0f73ec4a7bed4e6 | |
parent | 9a2194245d6389d6b173c378466c38c6359100a3 (diff) | |
download | rails-1faa00c9ece9c94784dbfab181d10924c50d2036.tar.gz rails-1faa00c9ece9c94784dbfab181d10924c50d2036.tar.bz2 rails-1faa00c9ece9c94784dbfab181d10924c50d2036.zip |
- Changed `paths` to `routing_paths` to avoid warning `possible reference to past scope`
-rw-r--r-- | railties/lib/rails/engine.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index b579f70983..a338f31f15 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -571,10 +571,10 @@ module Rails end initializer :add_routing_paths do |app| - paths = self.paths["config/routes.rb"].existent + routing_paths = self.paths["config/routes.rb"].existent - if routes? || paths.any? - app.routes_reloader.paths.unshift(*paths) + if routes? || routing_paths.any? + app.routes_reloader.paths.unshift(*routing_paths) app.routes_reloader.route_sets << routes end end |