aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorjuggernaut- <positr0n@mail.ru>2015-05-18 20:46:04 +0300
committerjuggernaut- <positr0n@mail.ru>2015-05-18 20:46:04 +0300
commite3333697fcdd23292a4ec15c80f17abef0156fc8 (patch)
tree994e628a77054cdc4ea8cbdc2f78447483eda9e7 /actionpack
parent0cae22d2ec42512bc496a2a344adc912ab9110d7 (diff)
downloadrails-e3333697fcdd23292a4ec15c80f17abef0156fc8.tar.gz
rails-e3333697fcdd23292a4ec15c80f17abef0156fc8.tar.bz2
rails-e3333697fcdd23292a4ec15c80f17abef0156fc8.zip
Added ActionDispatch::Journey::Routes#empty?
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/journey/routes.rb4
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