Commit 8d8a4eb6 authored by Clement Ho's avatar Clement Ho

[skip ci] fix ruby

parent edcee597
...@@ -157,7 +157,7 @@ class Projects::IssuesController < Projects::ApplicationController ...@@ -157,7 +157,7 @@ class Projects::IssuesController < Projects::ApplicationController
if @issue.valid? if @issue.valid?
render json: @issue.to_json(methods: [:task_status, :task_status_short], render json: @issue.to_json(methods: [:task_status, :task_status_short],
include: { milestone: {}, include: { milestone: {},
assignee: { only: [:name, :username], methods: [:avatar_url] }, assignees: { only: [:name, :username], methods: [:avatar_url] },
labels: { methods: :text_color } }) labels: { methods: :text_color } })
else else
render json: { errors: @issue.errors.full_messages }, status: :unprocessable_entity render json: { errors: @issue.errors.full_messages }, status: :unprocessable_entity
......
...@@ -151,6 +151,7 @@ class Issue < ActiveRecord::Base ...@@ -151,6 +151,7 @@ class Issue < ActiveRecord::Base
# TODO: This method will help us to find some silent failures. # TODO: This method will help us to find some silent failures.
# We should remove it before merging to master # We should remove it before merging to master
def assignee_id def assignee_id
return ''
raise "assignee_id is deprecated" raise "assignee_id is deprecated"
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment