api: allow search[*_id] params to accept lists of ids in more places.

This commit is contained in:
evazion
2017-05-14 12:38:39 -05:00
parent 8988f9cde8
commit 02b3622f12
9 changed files with 16 additions and 16 deletions

View File

@@ -71,7 +71,7 @@ class Pool < ActiveRecord::Base
end
if params[:creator_id].present?
q = q.where("creator_id = ?", params[:creator_id].to_i)
q = q.where(creator_id: params[:creator_id].split(",").map(&:to_i))
end
if params[:is_active] == "true"