diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-15 21:19:49 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-23 23:37:05 +0300 |
commit | 7c479d88a92233790bc0fb63146fe004f8b9b5d7 (patch) | |
tree | 3691c9e55229b145ea631bca724ba4da8c467d70 /app/models/diff_note.rb | |
parent | 7e09a9b7dcef125af2e775869754a3327935b12d (diff) |
Pass fallback_diff_refs to Diff::File instead of using view helpers
Diffstat (limited to 'app/models/diff_note.rb')
-rw-r--r-- | app/models/diff_note.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/diff_note.rb b/app/models/diff_note.rb index 76c59199afd..c6b770a180f 100644 --- a/app/models/diff_note.rb +++ b/app/models/diff_note.rb @@ -60,7 +60,7 @@ class DiffNote < Note return false unless supported? return true if for_commit? - diff_refs ||= noteable_diff_refs + diff_refs ||= noteable.diff_refs self.position.diff_refs == diff_refs end @@ -96,7 +96,7 @@ class DiffNote < Note self.project, nil, old_diff_refs: self.position.diff_refs, - new_diff_refs: noteable_diff_refs, + new_diff_refs: noteable.diff_refs, paths: self.position.paths ).execute(self) end |