mirror of
https://github.com/kingomarnajjar/curly-happiness.git
synced 2026-07-30 18:16:41 +10:00
15 lines
935 B
Ruby
15 lines
935 B
Ruby
class User < ApplicationRecord
|
|
############################################################################################
|
|
## PeterGate Roles ##
|
|
## The :user role is added by default and shouldn't be included in this list. ##
|
|
## The :root_admin can access any page regardless of access settings. Use with caution! ##
|
|
## The multiple option can be set to true if you need users to have multiple roles. ##
|
|
petergate(roles: [:admin, :editor], multiple: false) ##
|
|
############################################################################################
|
|
|
|
|
|
# Include default devise modules. Others available are:
|
|
# :confirmable, :lockable, :timeoutable and :omniauthable
|
|
devise :database_authenticatable, :registerable,
|
|
:recoverable, :rememberable, :trackable, :validatable
|
|
end
|