diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-04-21 23:50:20 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-04-27 20:23:26 +0300 |
commit | ec19703a44aaf427de2b83cec31b72be9a024a42 (patch) | |
tree | 982d84f7247e1fb7c5ee1f9b450aaba6c17df7bb /app/views/notify | |
parent | 0e0c760e487651cdbddfce818ca6b69ad43fe071 (diff) |
Blob responds to text?
Diffstat (limited to 'app/views/notify')
-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 |