Sha256: 13b35f6f1227ec0c2e2ed80505d78931b739e0baef1d8e3a70d795a16c854b7d

Contents?: true

Size: 643 Bytes

Versions: 29

Compression:

Stored size: 643 Bytes

Contents

Cms.setup do |config|
  # To allow proper access to the cms, define a callback method in Cms::SetupController or a parent controller
  # that accepts a role symbol and returns true/false if the user should be given access to various cms functions.
  # The role parameter will be one of :all, :cms_admin or :cms_user
  #
  # def authorize_role(role)
  #   res = current_user.admin? && role == :cms_admin
  #   redirect_to login_path if !res
  #   res
  # end
  #
  #config.user_authorize_callback = :authorize_role

  # The class of your apps context object if it has one. This attribute must be set last.
  config.context_class = :Company
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
liquid_cms-0.3.2.0 test/rails_app/config/initializers/cms/liquid_cms.rb
liquid_cms-0.2.2.0 test/rails_app/config/initializers/cms/liquid_cms.rb
liquid_cms-0.2.1.1 test/rails_app/config/initializers/cms/liquid_cms.rb
liquid_cms-0.3.1.0 test/rails_app/config/initializers/cms/liquid_cms.rb
liquid_cms-0.2.1.0 test/rails_app/config/initializers/cms/liquid_cms.rb
liquid_cms-0.2.0.13 test/rails_app/config/initializers/cms/liquid_cms.rb
liquid_cms-0.3.0.10 test/rails_app/config/initializers/cms/liquid_cms.rb
liquid_cms-0.3.0.9 test/rails_app/config/initializers/cms/liquid_cms.rb
liquid_cms-0.2.0.12 test/rails_app/config/initializers/cms/liquid_cms.rb
liquid_cms-0.2.0.11 test/rails_app/config/initializers/cms/liquid_cms.rb
liquid_cms-0.2.0.10 test/rails_app/config/initializers/cms/liquid_cms.rb
liquid_cms-0.3.0.8 test/rails_app/config/initializers/cms/liquid_cms.rb
liquid_cms-0.2.0.9 test/rails_app/config/initializers/cms/liquid_cms.rb
liquid_cms-0.3.0.7 test/rails_app/config/initializers/cms/liquid_cms.rb
liquid_cms-0.3.0.6 test/rails_app/config/initializers/cms/liquid_cms.rb
liquid_cms-0.2.0.8 test/rails_app/config/initializers/cms/liquid_cms.rb
liquid_cms-0.3.0.5 test/rails_app/config/initializers/cms/liquid_cms.rb
liquid_cms-0.2.0.7 test/rails_app/config/initializers/cms/liquid_cms.rb
liquid_cms-0.3.0.4 test/rails_app/config/initializers/cms/liquid_cms.rb
liquid_cms-0.2.0.6 test/rails_app/config/initializers/cms/liquid_cms.rb