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

- Changed paths to routing_paths to avoid warning possible reference to past scope

This commit is contained in:
Vipul A M 2014-12-26 10:38:00 +05:30
parent 9a2194245d
commit 1faa00c9ec

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