Module: CanField::CanCan::RuleAdditions

Defined in:
lib/can_field/can_can/rule_additions.rb

Instance Method Summary collapse

Instance Method Details

#relevant_for_subject?(subject) ⇒ Boolean

for internal use

Returns:

  • (Boolean)


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