mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 22:46:22 +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
|
@ -6,7 +6,7 @@ class Account < ApplicationRecord
|
|||
|
||||
validates :account_type, presence: true
|
||||
|
||||
CASH = 'cash'
|
||||
CASH = 'cash'.freeze
|
||||
|
||||
def activities
|
||||
account_activities
|
||||
|
@ -16,7 +16,15 @@ class Account < ApplicationRecord
|
|||
[id, balance, currency, registrar]
|
||||
end
|
||||
|
||||
def self.ransackable_associations(auth_object = nil)
|
||||
super
|
||||
end
|
||||
|
||||
def self.ransackable_attributes(auth_object = nil)
|
||||
super
|
||||
end
|
||||
|
||||
def self.csv_header
|
||||
['Id', 'Balance', 'Currency', 'Registrar']
|
||||
%w[Id Balance Currency Registrar]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue