Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblackst0ne <blackst0ne.ru@gmail.com>2017-05-03 14:11:19 +0300
committerblackst0ne <blackst0ne.ru@gmail.com>2017-05-04 04:58:41 +0300
commit62be3355b1cc74e085a7a046e7aca05f59a1f97a (patch)
treed2d01ebfac3f3af42046f9fd3348c966ea90a6d9 /app/services
parentc2b869a119f7400d748a8a97e4abc3137bc7c51d (diff)
Add alias_attributes for notes
Diffstat (limited to 'app/services')
-rw-r--r--app/services/notes/update_service.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/services/notes/update_service.rb b/app/services/notes/update_service.rb
index 4b4f383abf2..75fd08ea0a9 100644
--- a/app/services/notes/update_service.rb
+++ b/app/services/notes/update_service.rb
@@ -5,11 +5,7 @@ module Notes
old_mentioned_users = note.mentioned_users.to_a
- note.assign_attributes(params)
- params.merge!(last_edited_at: Time.now, last_edited_by: current_user) if note.note_changed?
-
note.update_attributes(params.merge(updated_by: current_user))
-
note.create_new_cross_references!(current_user)
if note.previous_changes.include?('note')