Permalink
Browse files

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

Fixed warning `possible reference to past scope` from railties
  • Loading branch information...
guilleiguaran committed Dec 26, 2014
2 parents 9a21942 + 1faa00c commit 5fed875e908ba5fd78c19c8977b0bba5f660e992
Showing with 3 additions and 3 deletions.
  1. +3 −3 railties/lib/rails/engine.rb
@@ -571,10 +571,10 @@ def load_seed
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

0 comments on commit 5fed875

Please sign in to comment.