diff options
author | Paco Guzman <pacoguzmanp@gmail.com> | 2016-07-21 11:47:27 +0200 |
---|---|---|
committer | Paco Guzman <pacoguzmanp@gmail.com> | 2016-07-21 14:31:51 +0200 |
commit | 37d2919186e2e03894b82a262d08afd2eb012a36 (patch) | |
tree | bb47ef9f2c28444d36dbfdc4a40f30b0ec8d2479 /app/models/safe_diffs/commit.rb | |
parent | cb07541681a5961b40a7a17c9b93683cd8d59a8f (diff) | |
download | gitlab-ce-20034-phase-2.tar.gz |
Use SafeDiffs everywhere20034-phase-2
Diffstat (limited to 'app/models/safe_diffs/commit.rb')
-rw-r--r-- | app/models/safe_diffs/commit.rb | 7 |
1 files changed, 7 insertions, 0 deletions
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 |