Class: Spree::Admin::PayoutsController

Inherits:
ResourceController
  • Object
show all
Defined in:
app/controllers/spree/admin/payouts_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



8
9
10
11
12
13
# File 'app/controllers/spree/admin/payouts_controller.rb', line 8

def index
  @payouts = parent.payouts
                   .order(:created_at)
                   .where(state: params[:state] || 'confirmed')
                   .includes(:payoutable, :payout_profile, payment: :order)
end