Do not remove options from MongoMapper find.

This commit is contained in:
José Valim
2010-02-23 15:40:32 +01:00
parent 7f451ed9cc
commit 42df192df8

View File

@@ -22,14 +22,11 @@ module Devise
end
def find(*args)
options = args.extract_options!
case args.first
when :first
first(options)
when :all
all(options)
else
super
when :first, :all
send(args.shift, *args)
else
super
end
end