Class: Zuul::ActionController::DSL::Actionable
- Inherits:
-
Base
- Object
- Base
- Zuul::ActionController::DSL::Actionable
show all
- Defined in:
- lib/zuul/action_controller/dsl.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
256
257
258
|
# File 'lib/zuul/action_controller/dsl.rb', line 256
def all
all_actions
end
|
#allow?(role_or_perm) ⇒ Boolean
260
261
262
|
# File 'lib/zuul/action_controller/dsl.rb', line 260
def allow?(role_or_perm)
match? role_or_perm
end
|
#deny?(role_or_perm) ⇒ Boolean
264
265
266
|
# File 'lib/zuul/action_controller/dsl.rb', line 264
def deny?(role_or_perm)
match? role_or_perm
end
|