Sha256: 262348fa6c7157e9b5847f0820ac1f14cf429fc5bb4ac26943a7a38a46dbc10b

Contents?: true

Size: 287 Bytes

Versions: 5

Compression:

Stored size: 287 Bytes

Contents

class UpdateProfileInformationForm < ApplicationForm
  attr_accessor :name, :email

  validates :name,  presence: true
  validates :email, presence: true, lowercase: true, email: true, uniqueness: { model: User, attribute: :email, conditions: -> { where.not(id: Current.user.id) } }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kaze-0.5.0 stubs/default/app/forms/update_profile_information_form.rb
kaze-0.4.0 stubs/default/app/forms/update_profile_information_form.rb
kaze-0.3.0 stubs/default/app/forms/update_profile_information_form.rb
kaze-0.2.0 stubs/default/app/forms/update_profile_information_form.rb
kaze-0.1.0 stubs/default/app/forms/update_profile_information_form.rb