Sha256: f20407a3025bd269dbacdb0d29fcae2c77a2097a1e8600eee3d293ce71f11e25

Contents?: true

Size: 468 Bytes

Versions: 1

Compression:

Stored size: 468 Bytes

Contents

module RailsAdminImageManager
  class ApplicationController < RailsAdmin::ApplicationController

    protect_from_forgery with: :exception

    before_action :_authenticate!
    before_action :_authorize!

   private

    def _authenticate!
      instance_eval(&RailsAdmin::Config.authenticate_with)
    end

    def _authorize!
      instance_eval(&RailsAdmin::Config.authorize_with)
    end

    def filter_by?(param)
      params[param].present?
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_admin_image_manager-0.1.20 app/controllers/rails_admin_image_manager/application_controller.rb