Fix styling issues

This commit is contained in:
Karl Erik Õunapuu 2020-04-27 12:32:55 +03:00
parent 2c8f1081c9
commit 39791f5755
5 changed files with 42 additions and 46 deletions

View file

@ -20,6 +20,11 @@ class Dispute < ApplicationRecord
alias_attribute :name, :domain_name
def self.close_by_domain(domain_name)
dispute = Dispute.active.find_by(domain_name: domain_name)
dispute.update(closed: true) if dispute.present?
end
def set_expiry_date
return if starts_at.blank?

View file

@ -53,7 +53,7 @@ class Epp::Domain < Domain
def epp_code_map
{
'2002' => [ # Command use error
%i[base domain_already_belongs_to_the_querying_registrar]
%i[base domain_already_belongs_to_the_querying_registrar],
],
'2003' => [ # Required parameter missing
%i[registrant blank],
@ -86,7 +86,7 @@ class Epp::Domain < Domain
[:puny_label, :too_long, { obj: 'name', val: name_puny }]
],
'2201' => [ # Authorisation error
%i[transfer_code wrong_pw]
%i[transfer_code wrong_pw],
],
'2202' => [
%i[base invalid_auth_information_reserved],