To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 18 / 184f4ab8262b15ef30593558775a40495e198999.svn-base @ 912:5e80956cc792
History | View | Annotate | Download (512 Bytes)
| 1 | 909:cbb26bc654de | Chris | api.array :news, api_meta(:total_count => @news_count, :offset => @offset, :limit => @limit) do |
|---|---|---|---|
| 2 | @newss.each do |news| |
||
| 3 | api.news do |
||
| 4 | api.id news.id |
||
| 5 | api.project(:id => news.project_id, :name => news.project.name) unless news.project.nil? |
||
| 6 | api.author(:id => news.author_id, :name => news.author.name) unless news.author.nil? |
||
| 7 | |||
| 8 | api.title news.title |
||
| 9 | api.summary news.summary |
||
| 10 | api.description news.description |
||
| 11 | api.created_on news.created_on |
||
| 12 | end |
||
| 13 | end |
||
| 14 | end |