Sha256: d2d9e982dea24153bdfa1faf1906b9aa8e45d71f28c4345fd9c8e0c15607fad3
Contents?: true
Size: 360 Bytes
Versions: 5
Compression:
Stored size: 360 Bytes
Contents
class User < ActiveRecord::Base # Include default devise modules. Others available are: # :confirmable, :lockable, :timeoutable and :omniauthable devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable include Tang::Customer ROLES = %i[admin] def admin? self.role == 'admin' end end
Version data entries
5 entries across 5 versions & 1 rubygems