Sha256: c6c5585f96f18766a4603f03dca80b67e35c83b468f5c1f04bb4e8e098e2c15a

Contents?: true

Size: 1.08 KB

Versions: 65

Compression:

Stored size: 1.08 KB

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
      @datatable = Admin::ReportTransactionsDatatable.new
      @page_title = @datatable.datatable_name

      authorize! :index, @datatable

      render 'index'
    end

    def transactions_grouped_by_name
      @datatable = Admin::ReportTransactionsGroupedByNameDatatable.new
      @page_title = @datatable.datatable_name

      authorize! :index, @datatable

      render 'index'
    end

    def transactions_grouped_by_qb_name
      @datatable = Admin::ReportTransactionsGroupedByQbNameDatatable.new
      @page_title = @datatable.datatable_name

      authorize! :index, @datatable

      render 'index'
    end

    def payment_providers
      @datatable = Admin::ReportPaymentProvidersDatatable.new
      @page_title = @datatable.datatable_name

      authorize! :index, @datatable

      render 'index'
    end

  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
effective_orders-6.17.2 app/controllers/admin/order_reports_controller.rb
effective_orders-6.17.1 app/controllers/admin/order_reports_controller.rb
effective_orders-6.17.0 app/controllers/admin/order_reports_controller.rb
effective_orders-6.16.4 app/controllers/admin/order_reports_controller.rb
effective_orders-6.16.3 app/controllers/admin/order_reports_controller.rb
effective_orders-6.16.2 app/controllers/admin/order_reports_controller.rb
effective_orders-6.16.1 app/controllers/admin/order_reports_controller.rb
effective_orders-6.16.0 app/controllers/admin/order_reports_controller.rb
effective_orders-6.15.0 app/controllers/admin/order_reports_controller.rb
effective_orders-6.14.6 app/controllers/admin/order_reports_controller.rb
effective_orders-6.14.5 app/controllers/admin/order_reports_controller.rb
effective_orders-6.14.4 app/controllers/admin/order_reports_controller.rb
effective_orders-6.14.3 app/controllers/admin/order_reports_controller.rb
effective_orders-6.14.2 app/controllers/admin/order_reports_controller.rb
effective_orders-6.14.1 app/controllers/admin/order_reports_controller.rb
effective_orders-6.14.0 app/controllers/admin/order_reports_controller.rb
effective_orders-6.13.3 app/controllers/admin/order_reports_controller.rb
effective_orders-6.13.2 app/controllers/admin/order_reports_controller.rb
effective_orders-6.13.1 app/controllers/admin/order_reports_controller.rb
effective_orders-6.13.0 app/controllers/admin/order_reports_controller.rb