Chris@909: api.array :news, api_meta(:total_count => @news_count, :offset => @offset, :limit => @limit) do Chris@909: @newss.each do |news| Chris@909: api.news do Chris@909: api.id news.id Chris@909: api.project(:id => news.project_id, :name => news.project.name) unless news.project.nil? Chris@909: api.author(:id => news.author_id, :name => news.author.name) unless news.author.nil? Chris@909: Chris@909: api.title news.title Chris@909: api.summary news.summary Chris@909: api.description news.description Chris@909: api.created_on news.created_on Chris@909: end Chris@909: end Chris@909: end