Proper mongoid exists? syntax

This commit is contained in:
Sean Grove 2011-11-16 12:04:51 -08:00
parent d1306aec53
commit ef5caad897

View File

@ -44,7 +44,7 @@ module Locomotive
ido_id = event['data'].try(:[], 'ido_id')
ido_id and
Account.exists?(::Devise.cas_username_column => ido_id) and
Account.exists?(:conditions => {::Devise.cas_username_column => ido_id}) and
Account.where(::Devise.cas_username_column => ido_id).destroy
end