Module: AuthLh::RoleManagement::ClassMethods
- Defined in:
- lib/auth_lh/role_management.rb
Instance Method Summary collapse
Instance Method Details
#all_external ⇒ Object
20 21 22 |
# File 'lib/auth_lh/role_management.rb', line 20 def all_external @cached_roles ||= AuthLh::Api.get_roles end |
#clear_cache! ⇒ Object
28 29 30 |
# File 'lib/auth_lh/role_management.rb', line 28 def clear_cache! @cached_roles = nil end |
#find_external(id) ⇒ Object
24 25 26 |
# File 'lib/auth_lh/role_management.rb', line 24 def find_external(id) all_external.find { |x| x.id == id.to_i } end |