Sha256: 00357edaf3282ad934706cbc1642a5519d1573b401534f6482e3ebcedaaf6103
Contents?: true
Size: 630 Bytes
Versions: 1
Compression:
Stored size: 630 Bytes
Contents
class User include Mongoid::Document field :created_at, :type => DateTime devise :authenticatable, :http_authenticatable, :confirmable, :lockable, :recoverable, :registerable, :rememberable, :timeoutable, :token_authenticatable, :trackable, :validatable # attr_accessible :username, :email, :password, :password_confirmation def self.last(options={}) options.delete(:order) if options[:order] == "id" super options end # overwrite equality (because some devise tests use this for asserting model equality) def ==(other) other.is_a?(self.class) && _id == other._id end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
devise-1.1.rc0 | test/rails_app/app/mongoid/user.rb |