Sha256: 8f453eb82770b8a5ccbbbe15755e4e934a76969e8d6148dcb3142c71399cbd39

Contents?: true

Size: 506 Bytes

Versions: 26

Compression:

Stored size: 506 Bytes

Contents

module RocketCMS::Controller
  extend ActiveSupport::Concern
  included do
    include RsErrors
    include RsPages
    include RsMenu
    protect_from_forgery with: :exception
    helper_method :page_title
  end

  protected
  
    def page_title
      if @seo_page.nil?
        Settings ? Settings.default_title : "" #temp
      else
        @seo_page.page_title
      end
    end

    def ckeditor_authenticate
      redirect_to '/' unless user_signed_in? && current_user.has_role?('admin')
    end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ack_rocket_cms-0.9.1.3 lib/rocket_cms/controller.rb
ack_rocket_cms-0.9.1.2 lib/rocket_cms/controller.rb
ack_rocket_cms-0.9.1.1 lib/rocket_cms/controller.rb
ack_rocket_cms-0.9.1 lib/rocket_cms/controller.rb
ack_rocket_cms-0.9 lib/rocket_cms/controller.rb
ack_rocket_cms-0.8.2 lib/rocket_cms/controller.rb
ack_rocket_cms-0.8.0 lib/rocket_cms/controller.rb
ack_rocket_cms-0.7.7.1 lib/rocket_cms/controller.rb
ack_rocket_cms-0.7.7 lib/rocket_cms/controller.rb
ack_rocket_cms-0.7.6.4 lib/rocket_cms/controller.rb
ack_rocket_cms-0.7.6.3 lib/rocket_cms/controller.rb
ack_rocket_cms-0.7.6.2 lib/rocket_cms/controller.rb
ack_rocket_cms-0.7.6.1 lib/rocket_cms/controller.rb
ack_rocket_cms-0.7.6 lib/rocket_cms/controller.rb
ack_rocket_cms-0.7.5.2 lib/rocket_cms/controller.rb
ack_rocket_cms-0.7.5.1 lib/rocket_cms/controller.rb
ack_rocket_cms-0.7.5 lib/rocket_cms/controller.rb
ack_rocket_cms-0.7.4.1 lib/rocket_cms/controller.rb
ack_rocket_cms-0.7.4 lib/rocket_cms/controller.rb
ack_rocket_cms-0.7.3 lib/rocket_cms/controller.rb