From daa426167f2ce2cb9e044d340ed4ba42cfe599f6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 4 Jul 2011 17:44:41 +0000 Subject: Adds support for GET on /issues/:issue_id/relations (#7366). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6179 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/issue_relations_controller.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'app/controllers/issue_relations_controller.rb') diff --git a/app/controllers/issue_relations_controller.rb b/app/controllers/issue_relations_controller.rb index 094036768..36ee8d6d7 100644 --- a/app/controllers/issue_relations_controller.rb +++ b/app/controllers/issue_relations_controller.rb @@ -17,7 +17,16 @@ class IssueRelationsController < ApplicationController before_filter :find_issue, :find_project_from_association, :authorize - accept_key_auth :show, :create, :destroy + accept_key_auth :index, :show, :create, :destroy + + def index + @relations = @issue.relations + + respond_to do |format| + format.html { render :nothing => true } + format.api + end + end def show @relation = @issue.find_relation(params[:id]) -- cgit v1.2.3