Updated dependency ransack to v4

This commit is contained in:
Sergei Tsoganov 2023-03-16 11:28:25 +02:00
parent a78f5b901f
commit 37c16a067d
16 changed files with 139 additions and 36 deletions

View file

@ -13,10 +13,18 @@ class Version::ContactVersion < PaperTrail::Version
contact.ident_human_description,
contact.registrar,
event,
created_at.to_formatted_s(:db)
created_at.to_formatted_s(:db),
]
end
def self.ransackable_attributes(auth_object = nil)
super
end
def self.ransackable_associations(auth_object = nil)
super
end
def self.csv_header
['Name', 'ID', 'Ident', 'Registrar', 'Action', 'Created at']
end

View file

@ -18,6 +18,14 @@ class Version::DomainVersion < PaperTrail::Version
]
end
def self.ransackable_attributes(auth_object = nil)
super
end
def self.ransackable_associations(auth_object = nil)
super
end
def self.was_contact_linked?(contact_id)
sql = <<-SQL
SELECT