user.rb 334 B

12345678910
  1. class User < ApplicationRecord
  2. # Include default devise modules. Others available are:
  3. # :confirmable, :lockable, :timeoutable and :omniauthable
  4. devise :masqueradable, :database_authenticatable, :registerable,
  5. :recoverable, :rememberable, :trackable, :validatable
  6. def name
  7. "#{first_name} #{last_name}"
  8. end
  9. end