Module: AuthLh::RoleManagement
- Defined in:
- lib/auth_lh/role_management.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 |
# File 'lib/auth_lh/role_management.rb', line 3 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#auth_role ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/auth_lh/role_management.rb', line 7 def auth_role if @auth_role.nil? @auth_role = self.class.find_external(id) end @auth_role end |
#auth_role=(val) ⇒ Object
15 16 17 |
# File 'lib/auth_lh/role_management.rb', line 15 def auth_role=(val) @auth_role = val end |