Sha256: 1e19da692883b66c61aa207d1a33f8d2101e169dd4f51d85464899d602257919
Contents?: true
Size: 386 Bytes
Versions: 1
Compression:
Stored size: 386 Bytes
Contents
class Admin include Mongoid::Document devise :authenticatable, :timeoutable, :registerable, :recoverable 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/admin.rb |