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

This commit is contained in:
Michael de Silva committed 2012-05-11 11:59:00 +03:00
1 parent 167d3832fc
commit 48ed6f9353
1 file changed
+1 -1
+1 -1
View File
@@ -100,7 +100,7 @@ module CanCan
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)