mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
DataMapper accepts conditions as well.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user