Open geekelo opened 1 month ago
This file configures the ActiveAdmin interface for managing Card::Load
records, which likely represent card loading transactions within the application. Here’s a breakdown of the key elements:
card_load.rb
Card::Load
resource under the "Cards" menu with the label "Loads" in the ActiveAdmin interface.user
and processing_fee
associations to optimize database queries when displaying these records.status
field can be modified via the ActiveAdmin interface.Card::Load
records:
Card::Load
record.Card::Load
record:
Card::Load
in a table format.id
, card_detail
, user
, processing_fee
, external_id
, amount
, currency
, provider_fee
, bananacrystal_fee
, total_fee
, error_data
, loaded_at
, confirmed_at
, created_at
, and updated_at
.provider_fee
, bananacrystal_fee
, and total_fee
columns are displayed using custom methods to retrieve the calculated values.Card::Load
record:
Card::Load
by selecting from a predefined list of status values (SetStatus::STATUS.values
).Card::Load
records within ActiveAdmin.status
of a card load, ensuring that only authorized changes are made.user
and processing_fee
helps in displaying related data efficiently.This configuration is suitable for an admin interface where managing and auditing card load transactions is a key requirement.
FILE