Class: Resources::User::FormPresenter

Inherits:
ResourcePresenter
  • Object
show all
Defined in:
app/presenters/resources/user/form_presenter.rb

Instance Method Summary collapse

Instance Method Details

#attributesObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'app/presenters/resources/user/form_presenter.rb', line 2

def attributes
  list = [
    :name, :first_name, :last_name, :email, 
  ]
  
  list += [:password, :password_confirmation] if resource.new_record? && resource.provider.blank?
  
  list += [
    :country, :language, :interface_language, :foreign_language_tokens, :timezone, :profession, 
    :employment_relationship, :area_tokens
  ]
  
  list
end