diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-17 22:09:01 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-17 22:09:01 +0300 |
commit | 6149dba5189b9f32b3a9caf0c4c585a973ec99fb (patch) | |
tree | f5209d55e56cd4d663971102bf0366301105e72a /app/models/note.rb | |
parent | a7f3672b75dff07688c5e4196ad1835bb89ff690 (diff) | |
download | gitlab-ce-6149dba5189b9f32b3a9caf0c4c585a973ec99fb.tar.gz |
Remove NotesObserver
Diffstat (limited to 'app/models/note.rb')
-rw-r--r-- | app/models/note.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index 659cd752071..01026cd3994 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -57,6 +57,7 @@ class Note < ActiveRecord::Base serialize :st_diff before_create :set_diff, if: ->(n) { n.line_code.present? } + after_update :set_references class << self def create_status_change_note(noteable, project, author, status, source) @@ -314,4 +315,8 @@ class Note < ActiveRecord::Base order('id DESC').limit(100). update_all(updated_at: Time.now) end + + def set_references + notice_added_references(project, author) + end end |