This commit is contained in:
Priit Tark 2015-07-23 17:44:52 +03:00
parent 79ac8db0eb
commit 5da7019bd4
7 changed files with 3 additions and 70 deletions

View file

@ -311,8 +311,8 @@ class Contact < ActiveRecord::Base
def status_notes_array=(notes)
self.status_notes = {}
notes ||= []
statuses.each_with_index do |status,i|
self.status_notes[status] = notes[i]
statuses.each_with_index do |status, i|
status_notes[status] = notes[i]
end
end