From 7dbc6d6979aec1ce7364269360d277fa2499e919 Mon Sep 17 00:00:00 2001 From: Dan Jensen Date: Mon, 11 Jun 2018 15:54:25 -0400 Subject: Fix bug with eager_load in development environment Modifies the routes simulator to allow for empty RouteSets, which are created when secondary Engines are loaded. --- actionpack/lib/action_dispatch/journey/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_dispatch/journey/routes.rb') diff --git a/actionpack/lib/action_dispatch/journey/routes.rb b/actionpack/lib/action_dispatch/journey/routes.rb index 639c063495..3ba8361d77 100644 --- a/actionpack/lib/action_dispatch/journey/routes.rb +++ b/actionpack/lib/action_dispatch/journey/routes.rb @@ -51,7 +51,7 @@ module ActionDispatch def ast @ast ||= begin asts = anchored_routes.map(&:ast) - Nodes::Or.new(asts) unless asts.empty? + Nodes::Or.new(asts) end end -- cgit v1.2.3