summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-12-06 14:39:29 +0000
committerPhil Hughes <me@iamphill.com>2018-12-06 14:39:29 +0000
commit2ed65be1c339346d316dfb2403fc06b82713cf21 (patch)
tree3fa233719f254ed16438799f040b40067ec49185 /app/serializers
parent71da313cd43bcbbbc8ec483944f887bacc518d81 (diff)
downloadgitlab-ce-2ed65be1c339346d316dfb2403fc06b82713cf21.tar.gz
Fixed renamed and mode changed diff viewers
Renders mode changed and renamed file merge request diff viewers on the frontend. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52607
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/diff_file_entity.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/serializers/diff_file_entity.rb b/app/serializers/diff_file_entity.rb
index 63ea8e8f95f..e570039d47e 100644
--- a/app/serializers/diff_file_entity.rb
+++ b/app/serializers/diff_file_entity.rb
@@ -46,6 +46,7 @@ class DiffFileEntity < Grape::Entity
expose :deleted_file?, as: :deleted_file
expose :renamed_file?, as: :renamed_file
+ expose :mode_changed?, as: :mode_changed
expose :old_path
expose :new_path
expose :mode_changed?, as: :mode_changed