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
53 54 55 |
# File 'lib/rhales/adapters/base_auth.rb', line 53 def anonymous? true end |
#display_name ⇒ Object
69 70 71 |
# File 'lib/rhales/adapters/base_auth.rb', line 69 def display_name 'Anonymous' end |
#role? ⇒ Boolean
65 66 67 |
# File 'lib/rhales/adapters/base_auth.rb', line 65 def role?(*) false end |
#theme_preference ⇒ Object
57 58 59 |
# File 'lib/rhales/adapters/base_auth.rb', line 57 def theme_preference 'light' end |
#user_id ⇒ Object
61 62 63 |
# File 'lib/rhales/adapters/base_auth.rb', line 61 def user_id nil end |