From e3333697fcdd23292a4ec15c80f17abef0156fc8 Mon Sep 17 00:00:00 2001 From: juggernaut- Date: Mon, 18 May 2015 20:46:04 +0300 Subject: Added ActionDispatch::Journey::Routes#empty? --- actionpack/lib/action_dispatch/journey/routes.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionpack') 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 -- cgit v1.2.3