DataMapper accepts conditions as well.

This commit is contained in:
José Valim
2009-11-23 12:39:26 -02:00
parent 39cf987b6b
commit 966b48c414

View File

@@ -36,9 +36,9 @@ module Devise
options = args.extract_options!
case args.first
when :first
first(options.merge(options.delete(:conditions)))
first(options)
when :all
all(options.merge(options.delete(:conditions)))
all(options)
else
get(*args)
end