Sha256: 1428456e308384a695c9a8268693dc77e4881c95189d9024b947b63d69dd3a9a
Contents?: true
Size: 475 Bytes
Versions: 7
Compression:
Stored size: 475 Bytes
Contents
module RegisterableFields extend ::ActiveSupport::Concern included do include Mongoid::Document ## Database authenticatable field :email, type: String, default: "" validates_presence_of :email field :encrypted_password, type: String, default: "" validates_presence_of :encrypted_password field :password_changed_at, type: Time index({ password_changed_at: 1 }, {}) index({ email: 1 }, {}) include Mongoid::Timestamps end end
Version data entries
7 entries across 7 versions & 1 rubygems