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.12.4 app/controllers/admin/order_reports_controller.rb
effective_orders-6.12.3 app/controllers/admin/order_reports_controller.rb
effective_orders-6.12.2 app/controllers/admin/order_reports_controller.rb
effective_orders-6.12.1 app/controllers/admin/order_reports_controller.rb
effective_orders-6.12.0 app/controllers/admin/order_reports_controller.rb
effective_orders-6.9.10 app/controllers/admin/order_reports_controller.rb
effective_orders-6.9.9 app/controllers/admin/order_reports_controller.rb
effective_orders-6.9.8 app/controllers/admin/order_reports_controller.rb
effective_orders-6.9.7 app/controllers/admin/order_reports_controller.rb
effective_orders-6.9.6 app/controllers/admin/order_reports_controller.rb
effective_orders-6.9.5 app/controllers/admin/order_reports_controller.rb
effective_orders-6.9.4 app/controllers/admin/order_reports_controller.rb
effective_orders-6.9.2 app/controllers/admin/order_reports_controller.rb
effective_orders-6.9.1 app/controllers/admin/order_reports_controller.rb
effective_orders-6.9.0 app/controllers/admin/order_reports_controller.rb
effective_orders-6.8.2 app/controllers/admin/order_reports_controller.rb
effective_orders-6.8.1 app/controllers/admin/order_reports_controller.rb
effective_orders-6.8.0 app/controllers/admin/order_reports_controller.rb
effective_orders-6.7.3 app/controllers/admin/order_reports_controller.rb
effective_orders-6.7.2 app/controllers/admin/order_reports_controller.rb