Sha256: c446b15e9bf04462eebb3677407ab5634f368b5ad0e8ee80c00427759d055f82
Contents?: true
Size: 345 Bytes
Versions: 8
Compression:
Stored size: 345 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 storytime_user def admin? Pundit.policy(self, :admin).manage? end end
Version data entries
8 entries across 8 versions & 1 rubygems