Module: AnnotationSecurity::Resource::InstanceMethods
- Defined in:
- lib/annotation_security/includes/resource.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#__is_resource? ⇒ Boolean
77 78 79 |
# File 'lib/annotation_security/includes/resource.rb', line 77 def __is_resource? true end |
#policy_for(user) ⇒ Object
81 82 83 |
# File 'lib/annotation_security/includes/resource.rb', line 81 def policy_for(user) self.class.policy_for(user,self) end |
#resource_type ⇒ Object
73 74 75 |
# File 'lib/annotation_security/includes/resource.rb', line 73 def resource_type self.class.resource_type end |