Commit 9bb2f02d authored by Mayra Cabrera's avatar Mayra Cabrera Committed by Sean McGivern

Makes 'diff/content' partial use instance method

There's a method defined on viewer that does the conditional.
parent d43fd46c
.diff-content
= render 'projects/diffs/viewer', viewer: diff_file.rich_viewer || diff_file.simple_viewer
= render 'projects/diffs/viewer', viewer: diff_file.viewer
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment