To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / issue_categories / index.api.rsb @ 912:5e80956cc792
History | View | Annotate | Download (436 Bytes)
| 1 | 909:cbb26bc654de | Chris | api.array :issue_categories, api_meta(:total_count => @categories.size) do |
|---|---|---|---|
| 2 | @categories.each do |category| |
||
| 3 | api.issue_category do |
||
| 4 | api.id category.id |
||
| 5 | api.project(:id => category.project_id, :name => category.project.name) unless category.project.nil? |
||
| 6 | api.name category.name |
||
| 7 | api.assigned_to(:id => category.assigned_to_id, :name => category.assigned_to.name) unless category.assigned_to.nil? |
||
| 8 | end |
||
| 9 | end |
||
| 10 | end |