Sha256: ba44204f76554765ab6ba8b83d20d4fbbf6958ca4789747878317bbd0940d9a7
Contents?: true
Size: 428 Bytes
Versions: 6
Compression:
Stored size: 428 Bytes
Contents
class User < ActiveRecord::Base # ------------------------------------------ Devise # Include default devise modules. Others available are: # :lockable, :timeoutable, :omniauthable, :confirmable, :registerable devise :database_authenticatable, :recoverable, :rememberable, :trackable, :validatable # ------------------------------------------ Scopes scope :admins, -> { where(:is_admin => true) } end
Version data entries
6 entries across 6 versions & 1 rubygems