Browse files

cancan 2.0 fix for issue #565; fixes namespaced non-db/model backed r…

…esources authorization
  • Loading branch information...
1 parent 167d383 commit 48ed6f9353901a3224aa58aa10fb218fc1a779be @bsodmike committed Mar 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cancan/rule.rb
View
2 lib/cancan/rule.rb
@@ -100,7 +100,7 @@ def matches_action?(action)
def matches_subject?(subject)
subject = subject_name(subject) if subject_object? subject
- @expanded_subjects.include?(:all) || @expanded_subjects.include?(subject.to_sym) # || matches_subject_class?(subject)
+ @expanded_subjects.include?(:all) || @expanded_subjects.include?(subject.to_sym) || @expanded_subjects.include?(subject) # || matches_subject_class?(subject)
end
def matches_attribute?(attribute)

0 comments on commit 48ed6f9

Please sign in to comment.