Updated domain status view for pending #2785

This commit is contained in:
Priit Tark 2015-08-11 00:04:36 +03:00
parent e988bb6a20
commit 17eec8e298
5 changed files with 41 additions and 20 deletions

View file

@ -681,5 +681,13 @@ class Domain < ActiveRecord::Base
def update_whois_record
whois_record.blank? ? create_whois_record : whois_record.save
end
def status_notes_array=(notes)
self.status_notes = {}
notes ||= []
statuses.each_with_index do |status, i|
status_notes[status] = notes[i]
end
end
end
# rubocop: enable Metrics/ClassLength