diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-05-18 19:27:59 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-05-18 19:27:59 -0300 |
commit | 7145986e884915a8c1db0ea0b82f931379a402c5 (patch) | |
tree | 239b38e21ef22718c8a06d4a036e14041ad92b9f /actionpack/lib/action_dispatch/journey | |
parent | 9c4487517c90dad572502983779898058432a837 (diff) | |
parent | bad30ed46c64593f83ecccf10604c73667e12e2b (diff) | |
download | rails-7145986e884915a8c1db0ea0b82f931379a402c5.tar.gz rails-7145986e884915a8c1db0ea0b82f931379a402c5.tar.bz2 rails-7145986e884915a8c1db0ea0b82f931379a402c5.zip |
Merge pull request #20191 from juggernaut-/patch-1
Added ActionDispatch::Journey::Routes#empty?
Diffstat (limited to 'actionpack/lib/action_dispatch/journey')
-rw-r--r-- | actionpack/lib/action_dispatch/journey/routes.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/journey/routes.rb b/actionpack/lib/action_dispatch/journey/routes.rb index a6d1980db2..6325dfa3dd 100644 --- a/actionpack/lib/action_dispatch/journey/routes.rb +++ b/actionpack/lib/action_dispatch/journey/routes.rb @@ -16,6 +16,10 @@ module ActionDispatch @simulator = nil end + def empty? + routes.empty? + end + def length routes.length end |