diff options
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]) |