From e92f64f1435f3ecff7a13a2e79bc11d74c400bef Mon Sep 17 00:00:00 2001 From: rohit Date: Sun, 23 May 2010 17:12:23 +0530 Subject: [PATCH] Not for commiting, only testing [#4624] --- actionpack/lib/action_dispatch/routing/mapper.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 8a8d21c..4466dcd 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -622,7 +622,7 @@ module ActionDispatch end def member - unless @scope[:scope_level] == :resources + unless [:resources, :resource].include?(@scope[:scope_level]) raise ArgumentError, "can't use member outside resources scope" end -- 1.7.0.4