Module: WizAcl::AcoModel::InstanceMethods
- Defined in:
- lib/wizdog/acl/ext/aco_model.rb
Instance Method Summary collapse
- #aco_id ⇒ Object
- #allow(aros = "*", operations = "*") ⇒ Object
- #allowed?(aros = "*", operation = "*") ⇒ Boolean
- #deny(aros = "*", operations = "*") ⇒ Object
- #find_entries ⇒ Object
- #remove_allow(aros = "*", operations = "*") ⇒ Object
Instance Method Details
#aco_id ⇒ Object
12 13 14 |
# File 'lib/wizdog/acl/ext/aco_model.rb', line 12 def aco_id "#{self.class.name}_#{id}" end |
#allow(aros = "*", operations = "*") ⇒ Object
16 17 18 |
# File 'lib/wizdog/acl/ext/aco_model.rb', line 16 def allow(aros = "*", operations = "*") Acl.instance.allow(aros, self, operations) end |
#allowed?(aros = "*", operation = "*") ⇒ Boolean
24 25 26 |
# File 'lib/wizdog/acl/ext/aco_model.rb', line 24 def allowed?(aros = "*", operation = "*") Acl.instance.allowed?(aros, self, operation) end |
#deny(aros = "*", operations = "*") ⇒ Object
20 21 22 |
# File 'lib/wizdog/acl/ext/aco_model.rb', line 20 def deny(aros = "*", operations = "*") Acl.instance.deny(aros, self, operations) end |