Class: Symphonia::User::Anonymous

Inherits:
Object
  • Object
show all
Defined in:
app/models/symphonia/user.rb

Instance Method Summary collapse

Instance Method Details

#adminObject Also known as: admin?



143
144
145
# File 'app/models/symphonia/user.rb', line 143

def admin
  false
end

#allowed_to?(_action) ⇒ Boolean

Returns:

  • (Boolean)


127
128
129
# File 'app/models/symphonia/user.rb', line 127

def allowed_to?(_action)
  false
end

#authorize?(_controller, _action) ⇒ Boolean

Returns:

  • (Boolean)


131
132
133
# File 'app/models/symphonia/user.rb', line 131

def authorize?(_controller, _action)
  false
end

#createObject



139
140
141
# File 'app/models/symphonia/user.rb', line 139

def create
  false
end

#emailObject



123
124
125
# File 'app/models/symphonia/user.rb', line 123

def email
  'anonym@nothing'
end

#idObject



111
112
113
# File 'app/models/symphonia/user.rb', line 111

def id
  0
end

#languageObject



157
158
159
# File 'app/models/symphonia/user.rb', line 157

def language
  Symphonia.config.default_locale || I18n.default_locale
end

#logged_in?Boolean

Returns:

  • (Boolean)


149
150
151
# File 'app/models/symphonia/user.rb', line 149

def logged_in?
  false
end

#loginObject



119
120
121
# File 'app/models/symphonia/user.rb', line 119

def 
  'anonymous'
end

#nameObject



115
116
117
# File 'app/models/symphonia/user.rb', line 115

def name
  'Anonymous'
end

#persistence_tokenObject



153
154
155
# File 'app/models/symphonia/user.rb', line 153

def persistence_token
  nil
end

#saveObject



135
136
137
# File 'app/models/symphonia/user.rb', line 135

def save
  false
end