Commit 0313235b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix issuable serializer use

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent dc9e4d04
...@@ -284,7 +284,7 @@ class Projects::IssuesController < Projects::ApplicationController ...@@ -284,7 +284,7 @@ class Projects::IssuesController < Projects::ApplicationController
def render_issue_json def render_issue_json
if @issue.valid? if @issue.valid?
render json: IssueSerializer.new.represent(@issue) render json: serializer.represent(@issue)
else else
render json: { errors: @issue.errors.full_messages }, status: :unprocessable_entity render json: { errors: @issue.errors.full_messages }, status: :unprocessable_entity
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