Fixed ransack attributes

This commit is contained in:
Sergei Tsoganov 2023-04-06 14:15:05 +03:00
parent aa8d8c35e8
commit 33175eea88
19 changed files with 63 additions and 59 deletions

View file

@ -18,12 +18,12 @@ class Version::DomainVersion < PaperTrail::Version
]
end
def self.ransackable_attributes(auth_object = nil)
super
def self.ransackable_associations(*)
authorizable_ransackable_associations
end
def self.ransackable_associations(auth_object = nil)
super
def self.ransackable_attributes(*)
authorizable_ransackable_attributes
end
def self.was_contact_linked?(contact_id)