From 37d2919186e2e03894b82a262d08afd2eb012a36 Mon Sep 17 00:00:00 2001 From: Paco Guzman Date: Thu, 21 Jul 2016 11:47:27 +0200 Subject: Use SafeDiffs everywhere --- app/models/safe_diffs/commit.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/models/safe_diffs/commit.rb (limited to 'app/models/safe_diffs/commit.rb') diff --git a/app/models/safe_diffs/commit.rb b/app/models/safe_diffs/commit.rb new file mode 100644 index 00000000000..c6f454f497f --- /dev/null +++ b/app/models/safe_diffs/commit.rb @@ -0,0 +1,7 @@ +module SafeDiffs + class Commit < Base + def initialize(commit, diff_options: diff_options) + super(commit.diffs(diff_options), project: commit.project, diff_refs: commit.diff_refs) + end + end +end -- cgit v1.2.1