diff options
author | Sean Nichols <git@seanich.com> | 2018-12-08 00:50:56 -0500 |
---|---|---|
committer | Sean Nichols <git@seanich.com> | 2018-12-11 23:49:04 -0500 |
commit | 05dcb2dd76f2a9890398543f6de1516f5ec0b379 (patch) | |
tree | cfa2a54519a7255e97a1d56d091dd780828d7e4a /app/serializers | |
parent | e7a6b841684f9a2929b16176b223ea44bfc26332 (diff) | |
download | gitlab-ce-05dcb2dd76f2a9890398543f6de1516f5ec0b379.tar.gz |
Display empty files properly on MR diffs
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/diff_file_entity.rb | 1 |
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 |