Allow arrays to be received for custom ransacker
This commit is contained in:
parent
059310d709
commit
02ac87672e
|
@ -18,6 +18,7 @@ module Ransack
|
|||
predicates.inject(&:or)
|
||||
end
|
||||
else
|
||||
predicates.first.right[0] = predicates.first.right[0].val if predicates.first.right[0].class == Arel::Nodes::Casted
|
||||
predicates.first
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue