⚠️ shadowing outer local variable - predicate
This commit is contained in:
parent
2effde8a32
commit
7bcc903bb7
|
@ -33,8 +33,8 @@ module Ransack
|
||||||
predicate = attribute.attr.public_send(arel_pred, arel_values)
|
predicate = attribute.attr.public_send(arel_pred, arel_values)
|
||||||
|
|
||||||
if in_predicate?(predicate)
|
if in_predicate?(predicate)
|
||||||
predicate.right = predicate.right.map do |predicate|
|
predicate.right = predicate.right.map do |pr|
|
||||||
casted_array?(predicate) ? format_values_for(predicate) : predicate
|
casted_array?(pr) ? format_values_for(pr) : pr
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue