Sha256: 96b15616fc29a8787f2eb49e86c720414ff743ff9146e07ad078362fbc8e710b

Contents?: true

Size: 534 Bytes

Versions: 3

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

3 entries across 3 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-2.0.2 app/controllers/comfy/admin/base_controller.rb
comfortable_mexican_sofa-2.0.1 app/controllers/comfy/admin/base_controller.rb
comfortable_mexican_sofa-2.0.0 app/controllers/comfy/admin/base_controller.rb