diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2019-05-20 14:47:45 -0500 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2019-05-20 14:47:46 -0500 |
commit | 73d5e0c3f0a99d58430045e4bb391dc8a823f6c3 (patch) | |
tree | f71d55fd37ed335844452ca1e4b0cbb3667ba980 | |
parent | 9c1470c260032c8b3d9cd6cf759fd08a610e9a1b (diff) | |
download | gitlab-ce-mc-make-diff-content-partial-use-model-method.tar.gz |
Makes 'diff/content' partial use instance methodmc-make-diff-content-partial-use-model-method
There's a method defined on viewer that does the conditional.
-rw-r--r-- | app/views/projects/diffs/_content.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
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 |