Mercurial > hg > soundsoftware-site
diff app/views/queries/index.api.rsb @ 935:fe0249c097f6 live
Merge from the default branch
author | Chris Cannam |
---|---|
date | Wed, 11 Jul 2012 13:33:14 +0100 |
parents | cbb26bc654de |
children | 261b3d9a4903 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/queries/index.api.rsb Wed Jul 11 13:33:14 2012 +0100 @@ -0,0 +1,10 @@ +api.array :queries, api_meta(:total_count => @query_count, :offset => @offset, :limit => @limit) do + @queries.each do |query| + api.query do + api.id query.id + api.name query.name + api.is_public query.is_public + api.project_id query.project_id + end + end +end