Sha256: cebfed9035ee5181ec12acbbd2933cb34707a0344bf3d170bfd6485515122eec

Contents?: true

Size: 284 Bytes

Versions: 21

Compression:

Stored size: 284 Bytes

Contents

class Admin
  include MongoMapper::Document
  devise :authenticatable, :registerable, :timeoutable

  def self.find_for_authentication(conditions)
    last(:conditions => conditions)
  end

  def self.last(options={})
    options.merge!(:order => 'email')
    super options
  end
end

Version data entries

21 entries across 16 versions & 5 rubygems

Version Path
graffititracker_devise-1.0.11 test/rails_app/app/mongo_mapper/admin.rb
devise-1.0.11 test/rails_app/app/mongo_mapper/admin.rb
devise-1.0.10 test/rails_app/app/mongo_mapper/admin.rb
devise_ennder-1.4.1.0.9 test/rails_app/vendor/plugins/devise/test/rails_app/app/mongo_mapper/admin.rb
devise_ennder-1.4.1.0.9 test/rails_app/app/mongo_mapper/admin.rb
devise_ennder-1.3.1.0.9 test/rails_app/vendor/plugins/devise/test/rails_app/app/mongo_mapper/admin.rb
devise_ennder-1.3.1.0.9 test/rails_app/app/mongo_mapper/admin.rb
devise_ennder-1.2.1.0.9 test/rails_app/vendor/plugins/devise/test/rails_app/app/mongo_mapper/admin.rb
devise_ennder-1.2.1.0.9 test/rails_app/app/mongo_mapper/admin.rb
devise_ennder-1.1.1.0.9 test/rails_app/vendor/plugins/devise/test/rails_app/app/mongo_mapper/admin.rb
devise_ennder-1.1.1.0.9 test/rails_app/app/mongo_mapper/admin.rb
devise_ennder-1.0.1.0.9 test/rails_app/app/mongo_mapper/admin.rb
devise_ennder-1.0.1.0.9 test/rails_app/vendor/plugins/devise/test/rails_app/app/mongo_mapper/admin.rb
devise-1.0.9 test/rails_app/app/mongo_mapper/admin.rb
dcu-devise-1.0.7 test/rails_app/app/mongo_mapper/admin.rb
devise-1.0.8 test/rails_app/app/mongo_mapper/admin.rb
ivanvc-devise-1.0.7.1 test/rails_app/app/mongo_mapper/admin.rb
devise-1.0.7 test/rails_app/app/mongo_mapper/admin.rb
devise-1.0.6 test/rails_app/app/mongo_mapper/admin.rb
devise-1.0.5 test/rails_app/app/mongo_mapper/admin.rb