Sha256: 0372a7be9041a343d3c71f331662dec05522954828072bd732e5b694d71c195b
Contents?: true
Size: 451 Bytes
Versions: 1
Compression:
Stored size: 451 Bytes
Contents
module Georgia class User < ActiveRecord::Base devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable has_many :role_assignments, dependent: :destroy has_many :roles, through: :role_assignments has_many :revisions, foreign_key: :revised_by_id def role_names @role_names ||= roles.pluck(:name) end def name [first_name, last_name].join(' ') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
georgia-0.8.0 | app/models/georgia/user.rb |