add mutations to exchange painel

This commit is contained in:
João Geonizeli
2021-08-15 23:30:53 -03:00
parent 0ccd01abfd
commit 19a08cd50e
29 changed files with 702 additions and 198 deletions

View File

@@ -12,6 +12,7 @@ class FiatBalanceDashboard < Administrate::BaseDashboard
id: Field::Number,
user: Field::BelongsTo,
amount_formatted: Field::String,
amount_cents: Field::String,
created_at: Field::DateTime,
updated_at: Field::DateTime,
}.freeze
@@ -30,7 +31,7 @@ class FiatBalanceDashboard < Administrate::BaseDashboard
# FORM_ATTRIBUTES
# an array of attributes that will be displayed
# on the model's form (`new` and `edit`) pages.
FORM_ATTRIBUTES = [:user, :amount_formatted].freeze
FORM_ATTRIBUTES = [:user, :amount_cents].freeze
# COLLECTION_FILTERS
# a hash that defines filters that can be used while searching via the search