Class: Saasaparilla::Admin::TransactionsController

Inherits:
ApplicationController
  • Object
show all
Includes:
Authentication::InstanceMethods, Authorization::InstanceMethods
Defined in:
app/controllers/saasaparilla/admin/transactions_controller.rb

Instance Method Summary collapse

Methods included from Authorization::InstanceMethods

included

Methods included from Authentication::InstanceMethods

included, #require_current_billable

Instance Method Details

#indexObject

GET /admin/subscriptions



8
9
10
11
# File 'app/controllers/saasaparilla/admin/transactions_controller.rb', line 8

def index
  @subscription = Subscription.find(params[:subscription_id])
  @transactions = @subscription.transactions.paginate(:page => params[:page], :per_page => 20, :order => "created_at DESC")
end