Class: Rabarber::Core::NullRoleable

Inherits:
Object
  • Object
show all
Defined in:
lib/rabarber/core/null_roleable.rb

Instance Method Summary collapse

Instance Method Details

#has_role?(*role_names, context: nil) ⇒ Boolean

rubocop:disable Lint/UnusedMethodArgument

Returns:

  • (Boolean)


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_identityObject



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