Sha256: 291376f79827088e3c1d6534f3da651ad107c3a4ad3f69c026cd9518a8313c60
Contents?: true
Size: 408 Bytes
Versions: 7
Compression:
Stored size: 408 Bytes
Contents
module DatabaseAuthenticatableFields extend ::ActiveSupport::Concern included do include Mongoid::Document ## Database authenticatable field :username, type: String field :email, type: String, default: "" #validates_presence_of :email field :encrypted_password, type: String, default: "" validates_presence_of :encrypted_password include Mongoid::Timestamps end end
Version data entries
7 entries across 7 versions & 1 rubygems