Class: Rabarber::Core::NullRoleable
- Inherits:
-
Object
- Object
- Rabarber::Core::NullRoleable
- Defined in:
- lib/rabarber/core/null_roleable.rb
Instance Method Summary collapse
-
#has_role?(*role_names, context: nil) ⇒ Boolean
rubocop:disable Lint/UnusedMethodArgument.
- #log_identity ⇒ Object
-
#roles(context:) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
Instance Method Details
#has_role?(*role_names, context: nil) ⇒ Boolean
rubocop:disable Lint/UnusedMethodArgument
10 11 12 |
# File 'lib/rabarber/core/null_roleable.rb', line 10 def has_role?(*role_names, context: nil) # rubocop:disable Lint/UnusedMethodArgument false end |
#log_identity ⇒ Object
14 15 16 |
# File 'lib/rabarber/core/null_roleable.rb', line 14 def log_identity "Unauthenticated #{Rabarber::HasRoles.roleable_class.model_name.human.downcase}" end |
#roles(context:) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
6 7 8 |
# File 'lib/rabarber/core/null_roleable.rb', line 6 def roles(context:) # rubocop:disable Lint/UnusedMethodArgument [] end |