diff options
author | juggernaut- <positr0n@mail.ru> | 2015-05-18 20:46:04 +0300 |
---|---|---|
committer | juggernaut- <positr0n@mail.ru> | 2015-05-18 20:46:04 +0300 |
commit | e3333697fcdd23292a4ec15c80f17abef0156fc8 (patch) | |
tree | 994e628a77054cdc4ea8cbdc2f78447483eda9e7 /actionpack/lib/action_dispatch | |
parent | 0cae22d2ec42512bc496a2a344adc912ab9110d7 (diff) | |
download | rails-e3333697fcdd23292a4ec15c80f17abef0156fc8.tar.gz rails-e3333697fcdd23292a4ec15c80f17abef0156fc8.tar.bz2 rails-e3333697fcdd23292a4ec15c80f17abef0156fc8.zip |
Added ActionDispatch::Journey::Routes#empty?
Diffstat (limited to 'actionpack/lib/action_dispatch')
-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..f4330a16a7 100644 --- a/actionpack/lib/action_dispatch/journey/routes.rb +++ b/actionpack/lib/action_dispatch/journey/routes.rb @@ -15,6 +15,10 @@ module ActionDispatch @custom_routes = [] @simulator = nil end + + def empty? + routes.empty? + end def length routes.length |