diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-05-26 02:08:48 +0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-06-24 21:24:59 +0300 |
commit | bade71ba5a25dfa6ca49c84650a7178b9275bf63 (patch) | |
tree | bf9dea0c16110707ae12cb8c602382123466ec2c /app/controllers | |
parent | c391a72c18e7081cfbc1b80627663fdfcf4bbfe6 (diff) |
Add specs and improve coffescript sortable binding function
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/issues_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/projects/issues_controller.rb b/app/controllers/projects/issues_controller.rb index 80dbabf51a5..8b8df680739 100644 --- a/app/controllers/projects/issues_controller.rb +++ b/app/controllers/projects/issues_controller.rb @@ -115,8 +115,9 @@ class Projects::IssuesController < Projects::ApplicationController render :edit end end + format.json do - render json: @issue.to_json(include: { milestone: {}, assignee: { methods: :avatar_url }, labels: { methods: :text_color } }, methods: :saved) + render json: @issue.to_json(include: { milestone: {}, assignee: { methods: :avatar_url }, labels: { methods: :text_color } }) end end end |