Sha256: 3fb9fd35b0d96e6ea19287b9e8f7c644d2ccda5fb008af38e4cc2c11bbed25b5

Contents?: true

Size: 371 Bytes

Versions: 6

Compression:

Stored size: 371 Bytes

Contents

module Cms
  class ApplicationController < ::ApplicationController
    include Cms::AdminController

    unless Cms.allow_guests?
      before_filter :redirect_to_cms_site
      before_action :authenticate_cms_user!
      before_filter :cms_access_required
    end

    before_action :no_browser_caching
    
    def no_browser_caching
      expires_now
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
browsercms-artirix-4.0.4 app/controllers/cms/application_controller.rb
browsercms-artirix-4.0.3.3 app/controllers/cms/application_controller.rb
browsercms-artirix-4.0.3.2 app/controllers/cms/application_controller.rb
browsercms-artirix-4.0.3.1 app/controllers/cms/application_controller.rb
browsercms-artirix-4.0.3 app/controllers/cms/application_controller.rb
browsercms-artirix-4.0.2 app/controllers/cms/application_controller.rb