Class: Arrthorizer::LoggedInUser
- Inherits:
-
ContextRole
- Object
- Role
- ContextRole
- Arrthorizer::LoggedInUser
- Defined in:
- lib/arrthorizer/roles.rb
Instance Method Summary collapse
Methods inherited from ContextRole
applies_to_user?, inherited, to_key, #to_key
Methods inherited from Role
get, register, registry, #to_key
Instance Method Details
#applies_to_user?(user, context) ⇒ Boolean
15 16 17 |
# File 'lib/arrthorizer/roles.rb', line 15 def applies_to_user?(user, context) !user.nil? end |