Module: WizAcl::Action::ClassMethods
- Defined in:
- lib/wizdog/acl/ext/action.rb
Instance Method Summary collapse
- #allow(aros = "*", actions = "*") ⇒ Object
- #current_aro ⇒ Object
- #deny(aros = "*", actions = "*") ⇒ Object
Instance Method Details
#allow(aros = "*", actions = "*") ⇒ Object
15 16 17 |
# File 'lib/wizdog/acl/ext/action.rb', line 15 def allow(aros = "*", actions = "*") Acl.instance.allow(aros, controller_name, actions) end |
#current_aro ⇒ Object
23 24 25 |
# File 'lib/wizdog/acl/ext/action.rb', line 23 def current_aro session[:current_user] end |