Class: Workarea::Api::Admin::PaymentTransactionsController
Instance Method Summary
collapse
#current_user, #sort_direction, #sort_field
Instance Method Details
#index ⇒ Object
52
53
54
55
56
57
58
59
|
# File 'app/controllers/workarea/api/admin/payment_transactions_controller.rb', line 52
def index
@transactions = Payment::Transaction
.all
.order_by(sort_field => sort_direction)
.page(params[:page])
respond_with transactions: @transactions
end
|
#show ⇒ Object
101
102
103
104
|
# File 'app/controllers/workarea/api/admin/payment_transactions_controller.rb', line 101
def show
@transaction = Payment::Transaction.find(params[:id])
respond_with transaction: @transaction
end
|