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 / versions / index.api.rsb @ 912:5e80956cc792
History | View | Annotate | Download (566 Bytes)
| 1 | 909:cbb26bc654de | Chris | api.array :versions, api_meta(:total_count => @versions.size) do |
|---|---|---|---|
| 2 | @versions.each do |version| |
||
| 3 | api.version do |
||
| 4 | api.id version.id |
||
| 5 | api.project(:id => version.project_id, :name => version.project.name) unless version.project.nil? |
||
| 6 | |||
| 7 | api.name version.name |
||
| 8 | api.description version.description |
||
| 9 | api.status version.status |
||
| 10 | api.due_date version.effective_date |
||
| 11 | |||
| 12 | render_api_custom_values version.custom_field_values, api |
||
| 13 | |||
| 14 | api.created_on version.created_on |
||
| 15 | api.updated_on version.updated_on |
||
| 16 | end |
||
| 17 | end |
||
| 18 | end |