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
-
symbolName of the rule -
useruser object that has to fulfill the rule -
argsList 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 |