diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-15 13:19:49 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-23 15:37:05 -0500 |
commit | 7c479d88a92233790bc0fb63146fe004f8b9b5d7 (patch) | |
tree | 3691c9e55229b145ea631bca724ba4da8c467d70 /app/models/legacy_diff_note.rb | |
parent | 7e09a9b7dcef125af2e775869754a3327935b12d (diff) | |
download | gitlab-ce-7c479d88a92233790bc0fb63146fe004f8b9b5d7.tar.gz |
Pass fallback_diff_refs to Diff::File instead of using view helpers
Diffstat (limited to 'app/models/legacy_diff_note.rb')
-rw-r--r-- | app/models/legacy_diff_note.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/legacy_diff_note.rb b/app/models/legacy_diff_note.rb index d7c627432d2..ebf8fb92ab5 100644 --- a/app/models/legacy_diff_note.rb +++ b/app/models/legacy_diff_note.rb @@ -61,7 +61,7 @@ class LegacyDiffNote < Note return true if for_commit? return true unless diff_line return false unless noteable - return false if diff_refs && diff_refs != noteable_diff_refs + return false if diff_refs && diff_refs != noteable.diff_refs noteable_diff = find_noteable_diff |