diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-04 17:44:41 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-04 17:44:41 +0000 |
commit | daa426167f2ce2cb9e044d340ed4ba42cfe599f6 (patch) | |
tree | 71ddd887c78b95ca4928f404e9290ed6c6502160 /app/controllers/issue_relations_controller.rb | |
parent | 79f25c08f8ce46ea19c1b172ffa0a56fab3c92f7 (diff) | |
download | redmine-daa426167f2ce2cb9e044d340ed4ba42cfe599f6.tar.gz redmine-daa426167f2ce2cb9e044d340ed4ba42cfe599f6.zip |
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
Diffstat (limited to 'app/controllers/issue_relations_controller.rb')
-rw-r--r-- | app/controllers/issue_relations_controller.rb | 11 |
1 files changed, 10 insertions, 1 deletions
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]) |