@@ -5,9 +5,9 api.array :news, api_meta(:total_count => @news_count, :offset => @offset, :limi | |||||
5 | api.project(:id => news.project_id, :name => news.project.name) unless news.project.nil? |
|
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? |
|
6 | api.author(:id => news.author_id, :name => news.author.name) unless news.author.nil? | |
7 |
|
7 | |||
8 |
api.title |
|
8 | api.title news.title | |
9 |
api.summary |
|
9 | api.summary news.summary | |
10 |
api.description |
|
10 | api.description news.description | |
11 | api.created_on news.created_on |
|
11 | api.created_on news.created_on | |
12 | end |
|
12 | end | |
13 | end |
|
13 | end |
General Comments 0
You need to be logged in to leave comments.
Login now