From 9bb2f02db63daf6901298564475da82533748f56 Mon Sep 17 00:00:00 2001 From: Mayra Cabrera Date: Tue, 21 May 2019 12:33:42 +0000 Subject: Makes 'diff/content' partial use instance method There's a method defined on viewer that does the conditional. --- app/views/projects/diffs/_content.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/diffs/_content.html.haml b/app/views/projects/diffs/_content.html.haml index 68f74f702ea..590fcdb0234 100644 --- a/app/views/projects/diffs/_content.html.haml +++ b/app/views/projects/diffs/_content.html.haml @@ -1,2 +1,2 @@ .diff-content - = render 'projects/diffs/viewer', viewer: diff_file.rich_viewer || diff_file.simple_viewer + = render 'projects/diffs/viewer', viewer: diff_file.viewer -- cgit v1.2.1