Permalink
Browse files

Use kind_of? to avoid Object#type deprecation warning.

  • Loading branch information...
1 parent e90960a commit 893ce45bb834aa775657a6bd2695b5a6c9d86ad9 @jpr5 jpr5 committed Jul 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dm-salesforce-adapter/sql.rb
View
2 lib/dm-salesforce-adapter/sql.rb
@@ -83,7 +83,7 @@ def like_operator(operand)
end
def quote_value(value, property)
- if property.type == Property::Boolean
+ if property.kind_of? Property::Boolean
# True on salesforce needs to be TRUE/FALSE for WHERE clauses but not for inserts.
return value == Property::Boolean::TRUE ? 'TRUE' : 'FALSE'
end

0 comments on commit 893ce45

Please sign in to comment.