lib/cancan/relevant.rb
# Matches both the action, subject, and attribute, not necessarily the conditions
Matches both the action, subject, and attribute, not necessarily the conditions
Matches both the action subject and attribute not necessarily the conditions
def matches_subject_class?(subject)
      @subjects.any? do |sub|
        sub.is_a?(Module) && (subject.is_a?(sub) ||
            subject.class.to_s == sub.to_s ||
            (subject.is_a?(Module) && subject.ancestors.include?(sub)))
      end
    end
def matches_subject_class? ( subject ) @subjects . any? do | sub | sub . is_a? ( Module ) && ( subject . is_a? ( sub ) || subject . class . to_s == sub . to_s || ( subject . is_a? ( Module ) && subject . ancestors . include? ( sub ) ) ) end end
Matches both the action, subject, and attribute, not necessarily the conditions
Matches both the action subject and attribute not necessarily the conditions
subject
<not_specific>