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?
143 144 145 |
# File 'app/models/symphonia/user.rb', line 143 def admin false end |
#allowed_to?(_action) ⇒ Boolean
127 128 129 |
# File 'app/models/symphonia/user.rb', line 127 def allowed_to?(_action) false end |
#authorize?(_controller, _action) ⇒ Boolean
131 132 133 |
# File 'app/models/symphonia/user.rb', line 131 def (_controller, _action) false end |
#create ⇒ Object
139 140 141 |
# File 'app/models/symphonia/user.rb', line 139 def create false end |
#email ⇒ Object
123 124 125 |
# File 'app/models/symphonia/user.rb', line 123 def email 'anonym@nothing' end |
#id ⇒ Object
111 112 113 |
# File 'app/models/symphonia/user.rb', line 111 def id 0 end |
#language ⇒ Object
157 158 159 |
# File 'app/models/symphonia/user.rb', line 157 def language Symphonia.config.default_locale || I18n.default_locale end |
#logged_in? ⇒ Boolean
149 150 151 |
# File 'app/models/symphonia/user.rb', line 149 def logged_in? false end |
#login ⇒ Object
119 120 121 |
# File 'app/models/symphonia/user.rb', line 119 def login 'anonymous' end |
#name ⇒ Object
115 116 117 |
# File 'app/models/symphonia/user.rb', line 115 def name 'Anonymous' end |
#persistence_token ⇒ Object
153 154 155 |
# File 'app/models/symphonia/user.rb', line 153 def persistence_token nil end |
#save ⇒ Object
135 136 137 |
# File 'app/models/symphonia/user.rb', line 135 def save false end |