mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 23:42:04 +02:00
Fix admin accounts CSV output
This commit is contained in:
parent
7d79e6528d
commit
1fac9d9618
3 changed files with 24 additions and 0 deletions
|
@ -12,4 +12,12 @@ class Account < ApplicationRecord
|
|||
def activities
|
||||
account_activities
|
||||
end
|
||||
|
||||
def as_csv_row
|
||||
[id, balance, currency, registrar]
|
||||
end
|
||||
|
||||
def self.csv_header
|
||||
['Id', 'Balance', 'Currency', 'Registrar'].freeze
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue