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:
commit
5fed875e90
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