Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing frontend
  • Loading branch information
alno committed Sep 25, 2012
1 parent c58a2dc commit 3608e77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/validator_frontend.rb
Expand Up @@ -28,7 +28,10 @@ def build_data(req)
end

if req[:types] && !req[:types].empty?
ds = ds.where('types && ARRAY[?]', req[:types].split(','))
types = req[:types].split(',')
placeholders = (['?'] * types.size).join(',')

ds = ds.where("types && ARRAY[#{placeholders}]", *types)
end

# Calculate offset/limit values
Expand Down

0 comments on commit 3608e77

Please sign in to comment.