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?
119 120 121 |
# File 'app/models/symphonia/user.rb', line 119 def admin false end |
#allowed_to?(_action) ⇒ Boolean
103 104 105 |
# File 'app/models/symphonia/user.rb', line 103 def allowed_to?(_action) false end |
#authorize?(_controller, _action) ⇒ Boolean
107 108 109 |
# File 'app/models/symphonia/user.rb', line 107 def (_controller, _action) false end |
#create ⇒ Object
115 116 117 |
# File 'app/models/symphonia/user.rb', line 115 def create false end |
#email ⇒ Object
99 100 101 |
# File 'app/models/symphonia/user.rb', line 99 def email 'anonym@nothing' end |
#id ⇒ Object
87 88 89 |
# File 'app/models/symphonia/user.rb', line 87 def id 0 end |
#language ⇒ Object
133 134 135 |
# File 'app/models/symphonia/user.rb', line 133 def language nil end |
#logged_in? ⇒ Boolean
125 126 127 |
# File 'app/models/symphonia/user.rb', line 125 def logged_in? false end |
#login ⇒ Object
95 96 97 |
# File 'app/models/symphonia/user.rb', line 95 def login 'anonymous' end |
#name ⇒ Object
91 92 93 |
# File 'app/models/symphonia/user.rb', line 91 def name 'Anonymous' end |
#persistence_token ⇒ Object
129 130 131 |
# File 'app/models/symphonia/user.rb', line 129 def persistence_token nil end |
#save ⇒ Object
111 112 113 |
# File 'app/models/symphonia/user.rb', line 111 def save false end |