Module: YamledAcl::ControllerExtension
- Defined in:
- lib/yamled_acl/controller_extension.rb
Overview
Module included into controllers.
A controller should have defined current_user
method. This method should respond to group_name
method which returns name of group that logged in user belongs to. Optionally name of this method could be changed using current_user_group_method
.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
ClassMethods.
Class Method Details
.included(base) ⇒ Object
ClassMethods
25 26 27 28 |
# File 'lib/yamled_acl/controller_extension.rb', line 25 def self.included(base) # :nodoc: base.extend ClassMethods base.helper_method :allowed_to?, :logged_in? end |