Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Nichols <git@seanich.com>2018-12-08 08:50:56 +0300
committerSean Nichols <git@seanich.com>2018-12-12 07:49:04 +0300
commit05dcb2dd76f2a9890398543f6de1516f5ec0b379 (patch)
treecfa2a54519a7255e97a1d56d091dd780828d7e4a /app/serializers
parente7a6b841684f9a2929b16176b223ea44bfc26332 (diff)
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