mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
16 lines
467 B
Ruby
16 lines
467 B
Ruby
class User
|
|
include Mongoid::Document
|
|
|
|
field :created_at, :type => DateTime
|
|
|
|
devise :authenticatable, :http_authenticatable, :confirmable, :lockable, :recoverable,
|
|
:registerable, :rememberable, :timeoutable, :token_authenticatable,
|
|
:trackable, :validatable
|
|
|
|
# attr_accessible :username, :email, :password, :password_confirmation
|
|
|
|
def self.last(options={})
|
|
options.delete(:order) if options[:order] == "id"
|
|
super options
|
|
end
|
|
end
|