Sha256: d1c975374e3342dd18ad5b3f9e9a4de3c64bda6f8136b901b5e8ca1679f3222f
Contents?: true
Size: 678 Bytes
Versions: 3
Compression:
Stored size: 678 Bytes
Contents
class User < ActiveRecord::Base validates :name, presence: true, uniqueness: true validates :first_name, presence: true validates :last_name, presence: true devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable, :confirmable, :lockable extend FriendlyId friendly_id :name, use: :slugged attr_accessible :name, :password, :password_confirmation, :remember_me, :first_name, :last_name, :email before_create do |user| user.skip_confirmation_notification! user.confirmation_sent_at = nil end def full_name "#{first_name} #{last_name}" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
home_page-0.0.6 | app/models/user.rb |
home_page-0.0.5 | app/models/user.rb |
home_page-0.0.4 | app/models/user.rb |