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

This commit is contained in:
Matt Farnsworth 2015-11-25 15:28:39 +02:00
commit bb9d806cc9

View file

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