Sha256: 4e4e340bafbf5139a556cd523047d9b7950383b136917d77d7b3e083919cd744

Contents?: true

Size: 534 Bytes

Versions: 10

Compression:

Stored size: 534 Bytes

Contents

class Comfy::Admin::BaseController < ComfortableMexicanSofa.config.base_controller.to_s.constantize

  include Comfy::Paginate

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

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

  helper Comfy::Admin::CmsHelper
  helper Comfy::CmsHelper

  protect_from_forgery

  before_action :authenticate

  layout "comfy/admin/cms"

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-2.0.12 app/controllers/comfy/admin/base_controller.rb
comfortable_mexican_sofa-2.0.11 app/controllers/comfy/admin/base_controller.rb
comfortable_mexican_sofa-2.0.10 app/controllers/comfy/admin/base_controller.rb
comfortable_mexican_sofa-2.0.9 app/controllers/comfy/admin/base_controller.rb
comfortable_mexican_sofa-2.0.8 app/controllers/comfy/admin/base_controller.rb
comfortable_mexican_sofa-2.0.7 app/controllers/comfy/admin/base_controller.rb
comfortable_mexican_sofa-2.0.6 app/controllers/comfy/admin/base_controller.rb
comfortable_mexican_sofa-2.0.5 app/controllers/comfy/admin/base_controller.rb
comfortable_mexican_sofa-2.0.4 app/controllers/comfy/admin/base_controller.rb
comfortable_mexican_sofa-2.0.3 app/controllers/comfy/admin/base_controller.rb