diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2017-05-03 14:11:19 +0300 |
---|---|---|
committer | blackst0ne <blackst0ne.ru@gmail.com> | 2017-05-04 04:58:41 +0300 |
commit | 62be3355b1cc74e085a7a046e7aca05f59a1f97a (patch) | |
tree | d2d01ebfac3f3af42046f9fd3348c966ea90a6d9 /app/services | |
parent | c2b869a119f7400d748a8a97e4abc3137bc7c51d (diff) |
Add alias_attributes for notes
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/notes/update_service.rb | 4 |
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') |