Sha256: 5ee6ba144957e6f7705e62a84303d50c7efda224c166fabdef282b93a465a81b

Contents?: true

Size: 926 Bytes

Versions: 5

Compression:

Stored size: 926 Bytes

Contents

module Admin
  class OrderReportsController < ApplicationController
    before_action(:authenticate_user!) if defined?(Devise)
    before_action { EffectiveResources.authorize!(self, :admin, :effective_orders) }

    include Effective::CrudController

    def transactions
      @page_title = 'Revenue: Individual Transactions'
      @datatable = Admin::ReportTransactionsDatatable.new

      authorize! :index, :report_transactions

      render 'index'
    end

    def grouped_transactions
      @page_title = 'Revenue: Grouped Transactions'
      @datatable = Admin::ReportGroupedTransactionsDatatable.new

      authorize! :index, :report_grouped_transactions

      render 'index'
    end

    def payment_providers
      @page_title = 'Revenue: Payment Providers'
      @datatable = Admin::ReportPaymentProvidersDatatable.new

      authorize! :index, :report_payment_providers

      render 'index'
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
effective_orders-6.1.4 app/controllers/admin/order_reports_controller.rb
effective_orders-6.1.3 app/controllers/admin/order_reports_controller.rb
effective_orders-6.1.2 app/controllers/admin/order_reports_controller.rb
effective_orders-6.1.1 app/controllers/admin/order_reports_controller.rb
effective_orders-6.1.0 app/controllers/admin/order_reports_controller.rb