Sha256: 8b690ffcde871731c580c674ab56929f40428d3cc60ec0fd6857cf708c652a8d

Contents?: true

Size: 456 Bytes

Versions: 6

Compression:

Stored size: 456 Bytes

Contents

require_dependency "tang/application_controller"

module Tang
  class Admin::PaymentsController < Admin::ApplicationController
    before_action :set_payment, only: [:show]

    def index
      @payments = Tang::Charge.all.
                         paginate(page: params[:page]).
                         order(created: :desc)
    end

    def show
    end

    private
      def set_payment
        @payment = Charge.find(params[:id])
      end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tang-0.2.2 app/controllers/tang/admin/payments_controller.rb
tang-0.2.1 app/controllers/tang/admin/payments_controller.rb
tang-0.2.0 app/controllers/tang/admin/payments_controller.rb
tang-0.1.0 app/controllers/tang/admin/payments_controller.rb
tang-0.0.9 app/controllers/tang/admin/payments_controller.rb
tang-0.0.8 app/controllers/tang/admin/payments_controller.rb