Module: WizAcl::AroModel::InstanceMethods
- Defined in:
- lib/wizdog/acl/ext/aro_model.rb
Instance Method Summary collapse
- #allow(acos = "*", operations = "*") ⇒ Object
- #allowed?(acos = "*", operation = "*") ⇒ Boolean
- #aro_id ⇒ Object
- #deny(acos = "*", operations = "*") ⇒ Object
- #find_entries ⇒ Object
Instance Method Details
#allow(acos = "*", operations = "*") ⇒ Object
27 28 29 |
# File 'lib/wizdog/acl/ext/aro_model.rb', line 27 def allow(acos = "*", operations = "*") Acl.instance.allow(self, acos, operations) end |
#allowed?(acos = "*", operation = "*") ⇒ Boolean
35 36 37 |
# File 'lib/wizdog/acl/ext/aro_model.rb', line 35 def allowed?(acos = "*", operation = "*") Acl.instance.allowed?(self, acos, operation) || Acl.instance.allowed?(self.class.name, acos, operation) end |
#aro_id ⇒ Object
23 24 25 |
# File 'lib/wizdog/acl/ext/aro_model.rb', line 23 def aro_id "#{self.class.name}_#{id}" end |