diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-04-21 15:50:20 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-04-27 12:23:26 -0500 |
commit | ec19703a44aaf427de2b83cec31b72be9a024a42 (patch) | |
tree | 982d84f7247e1fb7c5ee1f9b450aaba6c17df7bb | |
parent | 0e0c760e487651cdbddfce818ca6b69ad43fe071 (diff) | |
download | gitlab-ce-ec19703a44aaf427de2b83cec31b72be9a024a42.tar.gz |
Blob responds to text?
-rw-r--r-- | app/views/notify/repository_push_email.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/notify/repository_push_email.html.haml b/app/views/notify/repository_push_email.html.haml index 36512533c58..02eb7c8462c 100644 --- a/app/views/notify/repository_push_email.html.haml +++ b/app/views/notify/repository_push_email.html.haml @@ -74,7 +74,7 @@ - else %hr - blob = diff_file.blob - - if blob && blob.respond_to?(:text?) && blob.readable_text? + - if blob && blob.readable_text? %table.code.white = render partial: "projects/diffs/line", collection: diff_file.highlighted_diff_lines, as: :line, locals: { diff_file: diff_file, plain: true, email: true } - else |