mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 15:06:23 +02:00
Updated dependency ransack to v4
This commit is contained in:
parent
a78f5b901f
commit
37c16a067d
16 changed files with 139 additions and 36 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue