Open geekelo opened 1 month ago
This file configures the ActiveAdmin interface for managing CryptoOrder
records, with a focus on providing all actions except for deletion. The setup includes menu placement, permitted parameters, and sorting configuration.
crypto_order.rb
index
, show
, new
, create
, edit
, update
) except for destroy
. This restriction may be intended to prevent accidental deletion of important transaction records.user_id
: The ID of the associated user.crypto_transfer_id
: The ID of the associated crypto transfer.wallet_address_id
: The ID of the associated wallet address.external_id
: An external identifier for the order.order_type
: The type of the crypto order.destination
: The destination for the crypto transfer.purchase_amount
: The amount of cryptocurrency being purchased.source_amount
: The source amount in fiat or another currency.source_currency
: The currency used for the source amount.destination_currency
: The currency being transferred to.usd_source_amount
: The source amount in USD.usd_purchase_amount
: The purchase amount in USD.wallet_type
: The type of wallet being used.auth_code_requested
: Whether an authorization code was requested.error_category
: The category of any error that occurred.failure_reason
: The reason for failure if the order failed.payment_network_code
: The code for the payment network.internal_error_code
: An internal code for any errors.status
: The status of the crypto order.active
: Whether the order is currently active.user
, crypto_transfer
, and wallet_address
models to optimize database queries and improve the performance of the admin interface, particularly when listing or viewing individual records.CryptoOrder
resource is placed under the "Transactions" menu with the label "Crypto Orders." This categorizes the resource appropriately within the admin interface, making it easier to navigate.CryptoOrder
records, providing a detailed interface for viewing and updating transaction-related data.includes
directive improves performance by reducing the number of database queries.CryptoOrder
resource is organized under the "Transactions" menu, which helps administrators find and manage crypto-related transactions more easily.
FILE