Class: Rhales::Adapters::AnonymousAuth
- Defined in:
- lib/rhales/adapters/base_auth.rb
Overview
Default implementation for anonymous users
Instance Method Summary collapse
-
#anonymous? ⇒ Boolean
-
#display_name ⇒ Object
-
#role? ⇒ Boolean
-
#theme_preference ⇒ Object
-
#user_id ⇒ Object
Methods inherited from BaseAuth
Instance Method Details
#anonymous? ⇒ Boolean
51 52 53 |
# File 'lib/rhales/adapters/base_auth.rb', line 51 def anonymous? true end |
#display_name ⇒ Object
67 68 69 |
# File 'lib/rhales/adapters/base_auth.rb', line 67 def display_name 'Anonymous' end |
#role? ⇒ Boolean
63 64 65 |
# File 'lib/rhales/adapters/base_auth.rb', line 63 def role?(*) false end |
#theme_preference ⇒ Object
55 56 57 |
# File 'lib/rhales/adapters/base_auth.rb', line 55 def theme_preference 'light' end |
#user_id ⇒ Object
59 60 61 |
# File 'lib/rhales/adapters/base_auth.rb', line 59 def user_id nil end |