Merge pull request #1730 from internetee/442-forcedelete-notification-template-selection

Auto-select email template
This commit is contained in:
Timo Võhmar 2020-11-04 16:26:49 +02:00 committed by GitHub
commit b3c5aa2d41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 29 additions and 9 deletions

View file

@ -19,6 +19,10 @@ module Concerns::Domain::ForceDelete # rubocop:disable Metrics/ModuleLength
end
end
def notification_template
registrant.org? ? 'legal_person' : 'private_person'
end
def force_delete_scheduled?
statuses.include?(DomainStatus::FORCE_DELETE)
end