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?