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