Module: CanField::CanCan::RuleAdditions
- Defined in:
- lib/can_field/can_can/rule_additions.rb
Instance Method Summary collapse
-
#relevant_for_subject?(subject) ⇒ Boolean
for internal use.
Instance Method Details
#relevant_for_subject?(subject) ⇒ Boolean
for internal use
6 7 8 |
# File 'lib/can_field/can_can/rule_additions.rb', line 6 def relevant_for_subject?(subject) @match_all || matches_subject?(subject) end |