Method: AnnotationSecurity::AbstractStaticPolicy#evaluate_rule

Defined in:
lib/annotation_security/policy/abstract_static_policy.rb

#evaluate_rule(rule, user, args) ⇒ Object

Evaluate a rule that is defined with a proc

  • symbol Name of the rule

  • user user object that has to fulfill the rule

  • args List of additional arguments



70
71
72
73
74
# File 'lib/annotation_security/policy/abstract_static_policy.rb', line 70

def evaluate_rule(rule,user,args) #:nodoc:
  # In contrast to AbstractPolicy#evaluate_rule,
  # no resource is passed as argument
  get_rule!(rule).evaluate(self,user,*args)
end