Proper mongoid exists? syntax
This commit is contained in:
parent
d1306aec53
commit
ef5caad897
@ -44,7 +44,7 @@ module Locomotive
|
|||||||
ido_id = event['data'].try(:[], 'ido_id')
|
ido_id = event['data'].try(:[], 'ido_id')
|
||||||
|
|
||||||
ido_id and
|
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
|
Account.where(::Devise.cas_username_column => ido_id).destroy
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user