Class: Symphonia::User::Anonymous
- Defined in:
- app/models/symphonia/user.rb
Instance Method Summary collapse
- #admin ⇒ Object (also: #admin?)
- #allowed_to?(_action) ⇒ Boolean
- #authorize?(_controller, _action) ⇒ Boolean
- #create ⇒ Object
- #email ⇒ Object
- #id ⇒ Object
- #language ⇒ Object
- #logged_in? ⇒ Boolean
- #login ⇒ Object
- #name ⇒ Object
- #persistence_token ⇒ Object
- #save ⇒ Object
Instance Method Details
#admin ⇒ Object Also known as: admin?
116 117 118 |
# File 'app/models/symphonia/user.rb', line 116 def admin false end |
#allowed_to?(_action) ⇒ Boolean
100 101 102 |
# File 'app/models/symphonia/user.rb', line 100 def allowed_to?(_action) false end |
#authorize?(_controller, _action) ⇒ Boolean
104 105 106 |
# File 'app/models/symphonia/user.rb', line 104 def (_controller, _action) false end |
#create ⇒ Object
112 113 114 |
# File 'app/models/symphonia/user.rb', line 112 def create false end |
#email ⇒ Object
96 97 98 |
# File 'app/models/symphonia/user.rb', line 96 def email 'anonym@nothing' end |
#id ⇒ Object
84 85 86 |
# File 'app/models/symphonia/user.rb', line 84 def id 0 end |
#language ⇒ Object
130 131 132 |
# File 'app/models/symphonia/user.rb', line 130 def language nil end |
#logged_in? ⇒ Boolean
122 123 124 |
# File 'app/models/symphonia/user.rb', line 122 def logged_in? false end |
#login ⇒ Object
92 93 94 |
# File 'app/models/symphonia/user.rb', line 92 def login 'anonymous' end |
#name ⇒ Object
88 89 90 |
# File 'app/models/symphonia/user.rb', line 88 def name 'Anonymous' end |
#persistence_token ⇒ Object
126 127 128 |
# File 'app/models/symphonia/user.rb', line 126 def persistence_token nil end |
#save ⇒ Object
108 109 110 |
# File 'app/models/symphonia/user.rb', line 108 def save false end |