stop using deprecated methods in arel

This commit is contained in:
Aaron Patterson 2011-04-11 15:49:37 -07:00
parent d1575ae1b9
commit b53ffb35e0

@ -352,8 +352,8 @@ def find_some(ids)
if result.size == expected_size
result
else
conditions = arel.wheres.map { |x| x.value }.join(', ')
conditions = " [WHERE #{conditions}]" if conditions.present?
conditions = arel.where_sql
conditions = " [#{conditions}]" if conditions
error = "Couldn't find all #{@klass.name.pluralize} with IDs "
error << "(#{ids.join(", ")})#{conditions} (found #{result.size} results, but was looking for #{expected_size})"