Sha256: 8118312818dac37bdd0c605552f13a333436439a411383c44a82b0d2fc0ef97a
Contents?: true
Size: 285 Bytes
Versions: 5
Compression:
Stored size: 285 Bytes
Contents
class Admin < ApplicationRecord include Concerns::Person has_secure_password validates :first_name, :last_name, presence: true validates :email, uniqueness: { case_sensitive: false }, format: { with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i } end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
udongo-2.0.4 | app/models/admin.rb |
udongo-2.0.3 | app/models/admin.rb |
udongo-2.0.2 | app/models/admin.rb |
udongo-2.0.1 | app/models/admin.rb |
udongo-2.0.0 | app/models/admin.rb |