remove currency model and all references
This commit is contained in:
@@ -10,7 +10,6 @@ class SellCryptoOrderDashboard < Administrate::BaseDashboard
|
||||
# on pages throughout the dashboard.
|
||||
ATTRIBUTE_TYPES = {
|
||||
user: Field::BelongsTo,
|
||||
currency: Field::BelongsTo,
|
||||
id: Field::Number,
|
||||
status: Field::Enumerize,
|
||||
paid_amount: Field::String.with_options(searchable: false),
|
||||
@@ -24,17 +23,17 @@ class SellCryptoOrderDashboard < Administrate::BaseDashboard
|
||||
#
|
||||
# By default, it's limited to four items to reduce clutter on index pages.
|
||||
# Feel free to add, remove, or rearrange items.
|
||||
COLLECTION_ATTRIBUTES = [:user, :currency, :id, :status].freeze
|
||||
COLLECTION_ATTRIBUTES = [:user, :id, :status].freeze
|
||||
|
||||
# SHOW_PAGE_ATTRIBUTES
|
||||
# an array of attributes that will be displayed on the model's show page.
|
||||
SHOW_PAGE_ATTRIBUTES = [:user, :currency, :id, :status, :paid_amount, :received_amount_cents, :created_at,
|
||||
SHOW_PAGE_ATTRIBUTES = [:user, :id, :status, :paid_amount, :received_amount_cents, :created_at,
|
||||
:updated_at,].freeze
|
||||
|
||||
# FORM_ATTRIBUTES
|
||||
# an array of attributes that will be displayed
|
||||
# on the model's form (`new` and `edit`) pages.
|
||||
FORM_ATTRIBUTES = [:user, :currency, :status, :paid_amount, :received_amount_cents].freeze
|
||||
FORM_ATTRIBUTES = [:user, :status, :paid_amount, :received_amount_cents].freeze
|
||||
|
||||
# COLLECTION_FILTERS
|
||||
# a hash that defines filters that can be used while searching via the search
|
||||
|
||||
Reference in New Issue
Block a user