Migrate ToCsv module to CsvGenerator service

This commit is contained in:
Thiago Youssef 2022-04-01 10:59:04 +03:00
parent daafa756aa
commit e50501f13f
16 changed files with 34 additions and 60 deletions

View file

@ -1,5 +1,4 @@
class Dispute < ApplicationRecord
extend ToCsv
include WhoisStatusPopulate
validates :domain_name, :password, :starts_at, :expires_at, presence: true
before_validation :fill_empty_passwords, :set_expiry_date