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