summaryrefslogtreecommitdiff
path: root/app/serializers/discussion_entity.rb
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2018-07-18 00:07:37 +0200
committerFatih Acet <acetfatih@gmail.com>2018-07-18 00:07:37 +0200
commit7632330e50357c58bb28f82779dc1cd35c4f1dad (patch)
tree40874eda5c5015df666e5906b5f83a262339a871 /app/serializers/discussion_entity.rb
parent489025bbdd449948e67e305e53a638d1e81ecc84 (diff)
downloadgitlab-ce-7632330e50357c58bb28f82779dc1cd35c4f1dad.tar.gz
Fix showing outdated discussions on Changes tab_acet-fix-outdated-discussions
Diffstat (limited to 'app/serializers/discussion_entity.rb')
-rw-r--r--app/serializers/discussion_entity.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/serializers/discussion_entity.rb b/app/serializers/discussion_entity.rb
index 8a39a4950f5..7505bbdeb3d 100644
--- a/app/serializers/discussion_entity.rb
+++ b/app/serializers/discussion_entity.rb
@@ -4,6 +4,7 @@ class DiscussionEntity < Grape::Entity
expose :id, :reply_id
expose :position, if: -> (d, _) { d.diff_discussion? && !d.legacy_diff_discussion? }
+ expose :original_position, if: -> (d, _) { d.diff_discussion? && !d.legacy_diff_discussion? }
expose :line_code, if: -> (d, _) { d.diff_discussion? }
expose :expanded?, as: :expanded
expose :active?, as: :active, if: -> (d, _) { d.diff_discussion? }