Makes 'diff/content' partial use instance method

There's a method defined on viewer that does the conditional.
This commit is contained in:
Mayra Cabrera 2019-05-21 12:33:42 +00:00 committed by Sean McGivern
parent d43fd46c67
commit 9bb2f02db6

View file

@ -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