1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #18205 from vipulnsward/fix-railties-warning

Fixed warning `possible reference to past scope` from railties
This commit is contained in:
Guillermo Iguaran 2014-12-26 00:09:40 -05:00
commit 5fed875e90

View file

@ -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