Sha256: 2cde42d5b6e1eac3e92d2d4db6d1c5862de8c441ea09f9e7d81445e17b1d6e16
Contents?: true
Size: 794 Bytes
Versions: 24
Compression:
Stored size: 794 Bytes
Contents
class Admin < PARENT_MODEL_CLASS if DEVISE_ORM == :mongoid include Mongoid::Document include Mongoid::Attributes::Dynamic if defined?(Mongoid::Attributes::Dynamic) ## Database authenticatable field :email, :type => String, :default => "" field :encrypted_password, :type => String, :default => "" validates_presence_of :email validates_presence_of :encrypted_password, :if => :password_required? ## Confirmable field :confirmation_token, :type => String field :confirmed_at, :type => Time field :confirmation_sent_at, :type => Time field :unconfirmed_email, :type => String # Only if using reconfirmable end devise :database_authenticatable, :validatable, :registerable include DeviseInvitable::Inviter end
Version data entries
24 entries across 24 versions & 1 rubygems