Sha256: d52d3e2875c1f787367881fffb49d36a255966f1dc940fe7737281c92dd9c63e

Contents?: true

Size: 250 Bytes

Versions: 7

Compression:

Stored size: 250 Bytes

Contents

module Madmin
  class BaseController < ActionController::Base
    include Pagy::Backend

    protect_from_forgery with: :exception

    # Loads all the models for the sidebar
    before_action do
      Rails.application.eager_load!
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
madmin-1.2.0 app/controllers/madmin/base_controller.rb
madmin-1.1.0 app/controllers/madmin/base_controller.rb
madmin-1.0.2 app/controllers/madmin/base_controller.rb
madmin-1.0.1 app/controllers/madmin/base_controller.rb
madmin-1.0.0 app/controllers/madmin/base_controller.rb
madmin-1.0.0.beta2 app/controllers/madmin/base_controller.rb
madmin-1.0.0.beta1 app/controllers/madmin/base_controller.rb