summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorSean Nichols <git@seanich.com>2018-12-08 00:50:56 -0500
committerSean Nichols <git@seanich.com>2018-12-11 23:49:04 -0500
commit05dcb2dd76f2a9890398543f6de1516f5ec0b379 (patch)
treecfa2a54519a7255e97a1d56d091dd780828d7e4a /app/serializers
parente7a6b841684f9a2929b16176b223ea44bfc26332 (diff)
downloadgitlab-ce-05dcb2dd76f2a9890398543f6de1516f5ec0b379.tar.gz
Display empty files properly on MR diffs
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 f0881829efd..b0aaec3326d 100644
--- a/app/serializers/diff_file_entity.rb
+++ b/app/serializers/diff_file_entity.rb
@@ -5,6 +5,7 @@ class DiffFileEntity < DiffFileBaseEntity
include IconsHelper
expose :too_large?, as: :too_large
+ expose :empty?, as: :empty
expose :added_lines
expose :removed_lines