Merge branch '108621138-deleteCandidate-registrar-message' into staging

This commit is contained in:
Matt Farnsworth 2015-11-25 15:07:04 +02:00
commit 10ed60dd5a

View file

@ -329,7 +329,7 @@ class Domain < ActiveRecord::Base
domain.destroy
bye_bye = domain.versions.last
domain.registrar.messages.create!(
body: I18n.t(:domain_deleted),
body: "#{I18n.t(:domain_deleted)}: #{name}",
attached_obj_id: bye_bye.id,
attached_obj_type: bye_bye.class.to_s # DomainVersion
)