Sha256: 9eb0c6d07811c8060239a214145c8e016e3f9d051a970cc1c297182b72cd9c4f

Contents?: true

Size: 268 Bytes

Versions: 5

Compression:

Stored size: 268 Bytes

Contents

class Admin
  include MongoMapper::Document

  devise :all, :timeoutable, :except => [:recoverable, :confirmable, :rememberable, :validatable, :trackable]

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
devise-0.8.2 test/rails_app/app/mongo_mapper/admin.rb
devise-0.8.1 test/rails_app/app/mongo_mapper/admin.rb
devise-0.8.0 test/rails_app/app/mongo_mapper/admin.rb
devise-0.7.5 test/rails_app/app/mongo_mapper/admin.rb
devise-0.7.4 test/rails_app/app/mongo_mapper/admin.rb