Sha256: a4ab78479f6db6f1e12cecd9acda9fcbd894849bd36a524ca8553cbe2dcaccaa

Contents?: true

Size: 240 Bytes

Versions: 2

Compression:

Stored size: 240 Bytes

Contents

class Admin
  include MongoMapper::Document
  include MongoMapper::Plugins::Callbacks

  devise :authenticatable, :timeoutable

  def self.find_for_authentication(conditions)
    last(:conditions => conditions, :order => "email")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
devise-1.1.pre2 test/rails_app/app/mongo_mapper/admin.rb
devise-1.1.pre test/rails_app/app/mongo_mapper/admin.rb