Module: WizAcl::Action::ClassMethods

Defined in:
lib/wizdog/acl/ext/action.rb

Instance Method Summary collapse

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_aroObject



23
24
25
# File 'lib/wizdog/acl/ext/action.rb', line 23

def current_aro
  session[:current_user]
end

#deny(aros = "*", actions = "*") ⇒ Object



19
20
21
# File 'lib/wizdog/acl/ext/action.rb', line 19

def deny(aros = "*", actions = "*")
  Acl.instance.allow(aros, controller_name, actions)
end