Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…esources authorization
  • Loading branch information...
commit 48ed6f9353901a3224aa58aa10fb218fc1a779be 1 parent 167d383
Michael de Silva authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/cancan/rule.rb
2  lib/cancan/rule.rb
@@ -100,7 +100,7 @@ def matches_action?(action)
100 100
101 101 def matches_subject?(subject)
102 102 subject = subject_name(subject) if subject_object? subject
103   - @expanded_subjects.include?(:all) || @expanded_subjects.include?(subject.to_sym) # || matches_subject_class?(subject)
  103 + @expanded_subjects.include?(:all) || @expanded_subjects.include?(subject.to_sym) || @expanded_subjects.include?(subject) # || matches_subject_class?(subject)
104 104 end
105 105
106 106 def matches_attribute?(attribute)

0 comments on commit 48ed6f9

Please sign in to comment.
Something went wrong with that request. Please try again.