view .svn/pristine/5e/5e76196c9e35c9b7b34f45d88fc793cafc843bca.svn-base @ 1327:287f201c2802 redmine-2.2-integration

Add italic
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 19 Jun 2013 20:56:22 +0100
parents cbb26bc654de
children
line wrap: on
line source
api.array :versions, api_meta(:total_count => @versions.size) do
  @versions.each do |version|
    api.version do
      api.id version.id
      api.project(:id => version.project_id, :name => version.project.name) unless version.project.nil?

      api.name        version.name
      api.description version.description
      api.status      version.status
      api.due_date    version.effective_date

      render_api_custom_values version.custom_field_values, api

      api.created_on version.created_on
      api.updated_on version.updated_on
    end
  end
end