Sha256: b8b13702b25b9e877bd13b3856db71c2a6dd0a2ad179476cffb87cd0f579d24d

Contents?: true

Size: 323 Bytes

Versions: 13

Compression:

Stored size: 323 Bytes

Contents

class CMS::RootController < ApplicationController
  before_filter :admin!
  before_filter :set_active
  layout 'cms'

  def description
  end

  def index
  end

  protected

  def admin!
    unless signed_in? && current_user.role.admin?
      auth_failed
    end
  end

  def set_active
    @active_page = /cms/
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
honey-cms-0.5.1 app/controllers/cms/root_controller.rb
honey-cms-0.4.8 app/controllers/cms/root_controller.rb
honey-cms-0.4.7 app/controllers/cms/root_controller.rb
honey-cms-0.4.6 app/controllers/cms/root_controller.rb
honey-cms-0.4.5 app/controllers/cms/root_controller.rb
honey-cms-0.4.2 app/controllers/cms/root_controller.rb
honey-cms-0.4.1 app/controllers/cms/root_controller.rb
honey-cms-0.4.0 app/controllers/cms/root_controller.rb
honey-cms-0.3.13 app/controllers/cms/root_controller.rb
honey-cms-0.3.12 app/controllers/cms/root_controller.rb
honey-cms-0.3.11 app/controllers/cms/root_controller.rb
honey-cms-0.3.10 app/controllers/cms/root_controller.rb
honey-cms-0.3.9 app/controllers/cms/root_controller.rb