Module: YamledAcl::ControllerExtension::ClassMethods
- Defined in:
- lib/yamled_acl/controller_extension.rb
Instance Method Summary collapse
-
#current_user_group_method(method_name = nil) ⇒ Object
Allow to override default name of
current_user
object method which returns name of user group.
Instance Method Details
#current_user_group_method(method_name = nil) ⇒ Object
Allow to override default name of current_user
object method which returns name of user group.
15 16 17 18 19 20 21 |
# File 'lib/yamled_acl/controller_extension.rb', line 15 def current_user_group_method(method_name = nil) if method_name @@current_user_group_method = method_name else @@current_user_group_method or 'group_name' end end |