Class: ActiveAcl::ControllerAction
- Defined in:
- app/models/active_acl/controller_action.rb
Overview
This model is a DB representation of actions on an ActionController::Base controller and is grouped by ActiveAcl::ControllerGroup.
Class Method Summary collapse
-
.active_acl_description ⇒ Object
Returns the class representation in the admin screens.
Instance Method Summary collapse
-
#active_acl_description ⇒ Object
Returns the instance representation in the admin screens.
Class Method Details
.active_acl_description ⇒ Object
Returns the class representation in the admin screens.
25 26 27 |
# File 'app/models/active_acl/controller_action.rb', line 25 def self.active_acl_description return 'Action' end |
Instance Method Details
#active_acl_description ⇒ Object
Returns the instance representation in the admin screens.
12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/models/active_acl/controller_action.rb', line 12 def active_acl_description if action if controller return '/' + controller + '/' + action else return action end else return nil end end |