mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
stop using deprecated methods in arel
This commit is contained in:
parent
d1575ae1b9
commit
b53ffb35e0
1 changed files with 2 additions and 2 deletions
|
@ -352,8 +352,8 @@ module ActiveRecord
|
||||||
if result.size == expected_size
|
if result.size == expected_size
|
||||||
result
|
result
|
||||||
else
|
else
|
||||||
conditions = arel.wheres.map { |x| x.value }.join(', ')
|
conditions = arel.where_sql
|
||||||
conditions = " [WHERE #{conditions}]" if conditions.present?
|
conditions = " [#{conditions}]" if conditions
|
||||||
|
|
||||||
error = "Couldn't find all #{@klass.name.pluralize} with IDs "
|
error = "Couldn't find all #{@klass.name.pluralize} with IDs "
|
||||||
error << "(#{ids.join(", ")})#{conditions} (found #{result.size} results, but was looking for #{expected_size})"
|
error << "(#{ids.join(", ")})#{conditions} (found #{result.size} results, but was looking for #{expected_size})"
|
||||||
|
|
Loading…
Reference in a new issue