mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 21:46:24 +02:00
Remove freeze
method call at csv_header
This commit is contained in:
parent
1fac9d9618
commit
dd513b6313
6 changed files with 6 additions and 6 deletions
|
@ -18,6 +18,6 @@ class Account < ApplicationRecord
|
|||
end
|
||||
|
||||
def self.csv_header
|
||||
['Id', 'Balance', 'Currency', 'Registrar'].freeze
|
||||
['Id', 'Balance', 'Currency', 'Registrar']
|
||||
end
|
||||
end
|
||||
|
|
|
@ -590,6 +590,6 @@ class Contact < ApplicationRecord
|
|||
end
|
||||
|
||||
def self.csv_header
|
||||
['Name', 'ID', 'Ident', 'E-mail', 'Created at', 'Registrar', 'Phone'].freeze
|
||||
['Name', 'ID', 'Ident', 'E-mail', 'Created at', 'Registrar', 'Phone']
|
||||
end
|
||||
end
|
||||
|
|
|
@ -779,7 +779,7 @@ class Domain < ApplicationRecord
|
|||
end
|
||||
|
||||
def self.csv_header
|
||||
['Domain', 'Registrant', 'Valid to', 'Registrar', 'Created at', 'Statuses', 'Contacts code', 'Force delete date', 'Force delete data'].freeze
|
||||
['Domain', 'Registrant', 'Valid to', 'Registrar', 'Created at', 'Statuses', 'Contacts code', 'Force delete date', 'Force delete data']
|
||||
end
|
||||
|
||||
def self.pdf(html)
|
||||
|
|
|
@ -131,7 +131,7 @@ class Invoice < ApplicationRecord
|
|||
end
|
||||
|
||||
def self.csv_header
|
||||
['Number', 'Buyer', 'Due Date', 'Receipt Date', 'Issue Date', 'Total', 'Currency', 'Seller Name'].freeze
|
||||
['Number', 'Buyer', 'Due Date', 'Receipt Date', 'Issue Date', 'Total', 'Currency', 'Seller Name']
|
||||
end
|
||||
|
||||
def self.create_from_transaction!(transaction)
|
||||
|
|
|
@ -19,6 +19,6 @@ class Version::ContactVersion < PaperTrail::Version
|
|||
end
|
||||
|
||||
def self.csv_header
|
||||
['Name', 'ID', 'Ident', 'Registrar', 'Action', 'Created at'].freeze
|
||||
['Name', 'ID', 'Ident', 'Registrar', 'Action', 'Created at']
|
||||
end
|
||||
end
|
||||
|
|
|
@ -57,6 +57,6 @@ class Version::DomainVersion < PaperTrail::Version
|
|||
end
|
||||
|
||||
def self.csv_header
|
||||
['Name', 'Registrant', 'Registrar', 'Action', 'Created at'].freeze
|
||||
['Name', 'Registrant', 'Registrar', 'Action', 'Created at']
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue