From ef5caad89796e1600c1a35eade59a845d3184804 Mon Sep 17 00:00:00 2001 From: Sean Grove Date: Wed, 16 Nov 2011 12:04:51 -0800 Subject: [PATCH] Proper mongoid exists? syntax --- lib/locomotive/hosting/bushido/hooks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/locomotive/hosting/bushido/hooks.rb b/lib/locomotive/hosting/bushido/hooks.rb index 5e0abd5b..1c41e5ec 100644 --- a/lib/locomotive/hosting/bushido/hooks.rb +++ b/lib/locomotive/hosting/bushido/hooks.rb @@ -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