Sha256: 658d2e8829ff4bf530a58fc2b8d9c2d04bc2c029b6ca135081753c2b5c39c41f

Contents?: true

Size: 371 Bytes

Versions: 151

Compression:

Stored size: 371 Bytes

Contents

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

    include Effective::CrudController

    if (config = EffectiveOrders.layout)
      layout(config.kind_of?(Hash) ? config[:admin] : config)
    end

  end
end

Version data entries

151 entries across 151 versions & 1 rubygems

Version Path
effective_orders-6.0.0 app/controllers/admin/customers_controller.rb
effective_orders-5.9.4 app/controllers/admin/customers_controller.rb
effective_orders-5.9.3 app/controllers/admin/customers_controller.rb
effective_orders-5.9.2 app/controllers/admin/customers_controller.rb
effective_orders-5.9.1 app/controllers/admin/customers_controller.rb
effective_orders-5.9.0 app/controllers/admin/customers_controller.rb
effective_orders-5.8.2 app/controllers/admin/customers_controller.rb
effective_orders-5.8.1 app/controllers/admin/customers_controller.rb
effective_orders-5.8.0 app/controllers/admin/customers_controller.rb
effective_orders-5.7.4 app/controllers/admin/customers_controller.rb
effective_orders-5.7.3 app/controllers/admin/customers_controller.rb
effective_orders-5.7.2 app/controllers/admin/customers_controller.rb
effective_orders-5.7.1 app/controllers/admin/customers_controller.rb
effective_orders-5.7.0 app/controllers/admin/customers_controller.rb
effective_orders-5.6.2 app/controllers/admin/customers_controller.rb
effective_orders-5.6.1 app/controllers/admin/customers_controller.rb
effective_orders-5.6.0 app/controllers/admin/customers_controller.rb
effective_orders-5.5.2 app/controllers/admin/customers_controller.rb
effective_orders-5.5.1 app/controllers/admin/customers_controller.rb
effective_orders-5.5.0 app/controllers/admin/customers_controller.rb