Sha256: 422958805d3b4ed30958a000b557421ef234fb01c20d7a97e1becbae77af8d62

Contents?: true

Size: 292 Bytes

Versions: 4

Compression:

Stored size: 292 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.auth.user.id) } }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kaze-0.9.0 stubs/default/app/forms/update_profile_information_form.rb
kaze-0.8.0 stubs/default/app/forms/update_profile_information_form.rb
kaze-0.7.0 stubs/default/app/forms/update_profile_information_form.rb
kaze-0.6.0 stubs/default/app/forms/update_profile_information_form.rb