Mercurial > hg > soundsoftware-site
view app/views/queries/index.api.rsb @ 1540:322d7b57e5f0 live
Making this work through the api is too complicated for now; this will do OK
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Tue, 02 Jun 2015 10:58:31 +0100 |
parents | 261b3d9a4903 |
children |
line wrap: on
line source
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