Sha256: 26e4c6c6ca6ab707491744d235d34d6fed4569b9cdec1182a82ea2a9612d67c1

Contents?: true

Size: 255 Bytes

Versions: 2

Compression:

Stored size: 255 Bytes

Contents

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

  devise :authenticatable, :timeoutable, :registerable

  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.pre4 test/rails_app/app/mongo_mapper/admin.rb
devise-1.1.pre3 test/rails_app/app/mongo_mapper/admin.rb