mirror of
https://github.com/heartcombo/devise.git
synced 2026-02-17 10:01:49 -05:00
10 lines
268 B
Ruby
10 lines
268 B
Ruby
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
|