Allow arrays to be received for custom ransacker

This commit is contained in:
Idean Labib 2015-01-02 20:04:52 -08:00
parent 059310d709
commit 02ac87672e
1 changed files with 1 additions and 0 deletions

View File

@ -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