Class: Resources::User::FormPresenter
- Inherits:
-
ResourcePresenter
- Object
- ResourcePresenter
- Resources::User::FormPresenter
- Defined in:
- app/presenters/resources/user/form_presenter.rb
Instance Method Summary collapse
Instance Method Details
#attributes ⇒ Object
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, :profession, :employment_relationship, :area_tokens ] list end |