diff options
author | Jonathan Boler <galatians@gmail.com> | 2018-06-04 12:55:45 -0500 |
---|---|---|
committer | Jonathan Boler <galatians@gmail.com> | 2018-06-04 12:55:45 -0500 |
commit | b25a6843893a2ecc5eaab290e10e4f0b38157f8e (patch) | |
tree | d6282832061129f13fc296fdb5119cfa552e4ee8 /actionpack/lib | |
parent | 3875f5fccb437e5e25942f85f89a8c7c5e558006 (diff) | |
download | rails-b25a6843893a2ecc5eaab290e10e4f0b38157f8e.tar.gz rails-b25a6843893a2ecc5eaab290e10e4f0b38157f8e.tar.bz2 rails-b25a6843893a2ecc5eaab290e10e4f0b38157f8e.zip |
Only build routes simulator when there is an AST
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/journey/routes.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/journey/routes.rb b/actionpack/lib/action_dispatch/journey/routes.rb index 639c063495..a4373ed2b4 100644 --- a/actionpack/lib/action_dispatch/journey/routes.rb +++ b/actionpack/lib/action_dispatch/journey/routes.rb @@ -56,6 +56,7 @@ module ActionDispatch end def simulator + return if ast.nil? @simulator ||= begin gtg = GTG::Builder.new(ast).transition_table GTG::Simulator.new(gtg) |