Class: Zuul::ActionController::DSL::Actionable
- Inherits:
-
Base
- Object
- Base
- Zuul::ActionController::DSL::Actionable
show all
- Defined in:
- lib/zuul/action_controller/dsl/actionable.rb
Instance Attribute Summary
Attributes inherited from Base
#actions, #context, #default, #default_block_allow_rules, #default_block_deny_rules, #force_context, #mode, #permissions, #results, #roles, #scope, #subject_method
Instance Method Summary
collapse
Methods inherited from Base
#all_actions, #all_permissions, #all_roles, #allow_permissions, #allow_roles, #anyone, #authorized?, #collect_results, #contextual_permission, #contextual_role, #deny_permissions, #deny_roles, #execute, #logged_in, #logged_out, #options, #parse_context, #set_options, #subject
Instance Method Details
#all ⇒ Object
5
6
7
|
# File 'lib/zuul/action_controller/dsl/actionable.rb', line 5
def all
all_actions
end
|
#allow?(role_or_perm) ⇒ Boolean
9
10
11
|
# File 'lib/zuul/action_controller/dsl/actionable.rb', line 9
def allow?(role_or_perm)
match? role_or_perm
end
|
#deny?(role_or_perm) ⇒ Boolean
13
14
15
|
# File 'lib/zuul/action_controller/dsl/actionable.rb', line 13
def deny?(role_or_perm)
match? role_or_perm
end
|