Sha256: c713cc27a05b3aa9e7e7839d592f343581a0b7950c7c162cb824a1a74cc7c3c8

Contents?: true

Size: 436 Bytes

Versions: 34

Compression:

Stored size: 436 Bytes

Contents

api.array :issue_categories, api_meta(:total_count => @categories.size) do
  @categories.each do |category|
    api.issue_category do
      api.id category.id
      api.project(:id => category.project_id, :name => category.project.name) unless category.project.nil?
      api.name category.name
      api.assigned_to(:id => category.assigned_to_id, :name => category.assigned_to.name) unless category.assigned_to.nil?
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
redmine_extensions-0.0.39 spec/redmine/app/views/issue_categories/index.api.rsb
redmine_extensions-0.0.38 spec/redmine/app/views/issue_categories/index.api.rsb
redmine_extensions-0.0.37 spec/redmine/app/views/issue_categories/index.api.rsb
redmine_extensions-0.1.11 spec/redmine/app/views/issue_categories/index.api.rsb
redmine_extensions-0.1.10 spec/redmine/app/views/issue_categories/index.api.rsb
redmine_extensions-0.0.36 spec/redmine/app/views/issue_categories/index.api.rsb
redmine_extensions-0.0.34 spec/redmine/app/views/issue_categories/index.api.rsb
redmine_extensions-0.1.09 spec/redmine/app/views/issue_categories/index.api.rsb
redmine_extensions-0.1.07 spec/redmine/app/views/issue_categories/index.api.rsb
redmine_extensions-0.1.06 spec/redmine/app/views/issue_categories/index.api.rsb
redmine_extensions-0.1.05 spec/redmine/app/views/issue_categories/index.api.rsb
redmine_extensions-0.1.04 spec/redmine/app/views/issue_categories/index.api.rsb
redmine_extensions-0.1.03 spec/redmine/app/views/issue_categories/index.api.rsb
redmine_extensions-0.0.33 spec/redmine/app/views/issue_categories/index.api.rsb
redmine_extensions-0.1.02 spec/redmine/app/views/issue_categories/index.api.rsb
redmine_extensions-0.1.01 spec/redmine/app/views/issue_categories/index.api.rsb
redmine_extensions-0.0.29 spec/redmine/app/views/issue_categories/index.api.rsb
redmine_extensions-0.0.28 spec/redmine/app/views/issue_categories/index.api.rsb
redmine_extensions-0.0.27 spec/redmine/app/views/issue_categories/index.api.rsb
redmine_extensions-0.0.24 spec/redmine/app/views/issue_categories/index.api.rsb