Makes 'diff/content' partial use instance method
There's a method defined on viewer that does the conditional.
This commit is contained in:
parent
d43fd46c67
commit
9bb2f02db6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue