stop using deprecated methods in arel
This commit is contained in:
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})"
|
||||
|
Loading…
Reference in New Issue
Block a user