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:
parent
9a2194245d
commit
1faa00c9ec
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue