Sha256: ee85e1f38376f78e88fc18915d76ffe53b59f1a5aead9b41ecab9af1915924b3

Contents?: true

Size: 543 Bytes

Versions: 1

Compression:

Stored size: 543 Bytes

Contents

# frozen_string_literal: true

class Occams::Admin::BaseController < Occams.config.admin_base_controller.to_s.constantize
  include Occams::Paginate

  # Authentication module must have `authenticate` method
  include Occams.config.admin_auth.to_s.constantize

  # Authorization module must have `authorize` method
  include Occams.config.admin_authorization.to_s.constantize

  helper Occams::Admin::CmsHelper
  helper Occams::CmsHelper

  protect_from_forgery with: :exception

  before_action :authenticate

  layout "occams/admin/cms"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
occams-1.0.1 app/controllers/occams/admin/base_controller.rb