mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-11 00:27:55 -05:00
Fix last mongoid tests since it does not have the order method
This commit is contained in:
@@ -8,9 +8,8 @@ module Shim
|
||||
end
|
||||
|
||||
module ClassMethods
|
||||
def last(options = {})
|
||||
options.delete(:order) if options[:order] == "id"
|
||||
where(options).last
|
||||
def order(attribute)
|
||||
asc(attribute)
|
||||
end
|
||||
|
||||
def find_by_email(email)
|
||||
|
||||
Reference in New Issue
Block a user