aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorDan Jensen <djensen@addfour.co>2018-06-11 15:54:25 -0400
committerDan Jensen <djensen@addfour.co>2018-06-11 15:54:25 -0400
commit7dbc6d6979aec1ce7364269360d277fa2499e919 (patch)
tree95e6607501abd4390d2a057e299d662ca8410d0b /actionpack/lib
parent4eb1481c7f66a5c378b218676ece43b8ae13e553 (diff)
downloadrails-7dbc6d6979aec1ce7364269360d277fa2499e919.tar.gz
rails-7dbc6d6979aec1ce7364269360d277fa2499e919.tar.bz2
rails-7dbc6d6979aec1ce7364269360d277fa2499e919.zip
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.
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_dispatch/journey/routes.rb2
1 files changed, 1 insertions, 1 deletions
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