diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-03-31 04:33:45 +0300 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-05 19:44:14 +0300 |
commit | bb8cc946689bfafb1e3a65aa00b8e75fb8a5006b (patch) | |
tree | c63719f281b3e38c149ce8a7425d826850914f80 /app/models/diff_note.rb | |
parent | 2058e71e63c9ac471137f831b4d04b6626968532 (diff) |
Don't use original_discussion_id
Diffstat (limited to 'app/models/diff_note.rb')
-rw-r--r-- | app/models/diff_note.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/app/models/diff_note.rb b/app/models/diff_note.rb index 38477528279..6029fc42e9c 100644 --- a/app/models/diff_note.rb +++ b/app/models/diff_note.rb @@ -16,9 +16,6 @@ class DiffNote < Note before_validation :set_original_position, :update_position, on: :create before_validation :set_line_code - # We need to do this again, because it's already in `Note`, but is affected by - # `update_position` and needs to run after that. - before_validation :set_discussion_id, if: :position_changed? after_save :keep_around_commits def discussion_class(*) |