Sha256: 58d8187466984ede38820e14c14d3edd111463d5970649b9da59fb1ca49a1f11

Contents?: true

Size: 661 Bytes

Versions: 11

Compression:

Stored size: 661 Bytes

Contents

Ecm::Cms::Backend.configure do |config|
  # Set the resources, that will be shown in the backend menu in development
  # mode. This needs to be set to get a correct menu because
  # Controller.descendants is empty in development. This is an eager load
  # issue.
  #
  # Default: config.registered_controllers = []
  #
  config.registered_controllers = proc {
    [
      Ecm::Cms::Backend::ContentBoxesController,
      Ecm::Cms::Backend::NavigationItemsController,
      Ecm::Cms::Backend::NavigationsController,
      Ecm::Cms::Backend::PagesController,
      Ecm::Cms::Backend::PartialsController,
      Ecm::Cms::Backend::TemplatesController
    ]
  }
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ecm_cms2_backend-1.3.2 spec/dummy/config/initializers/ecm_cms_backend.rb
ecm_cms2_backend-1.3.1 spec/dummy/config/initializers/ecm_cms_backend.rb
ecm_cms2_backend-1.3.0 spec/dummy/config/initializers/ecm_cms_backend.rb
ecm_cms2_backend-1.2.3 spec/dummy/config/initializers/ecm_cms_backend.rb
ecm_cms2_backend-1.2.2 spec/dummy/config/initializers/ecm_cms_backend.rb
ecm_cms2_backend-1.2.1 spec/dummy/config/initializers/ecm_cms_backend.rb
ecm_cms2_backend-1.2.0 spec/dummy/config/initializers/ecm_cms_backend.rb
ecm_cms2_backend-1.1.0 spec/dummy/config/initializers/ecm_cms_backend.rb
ecm_cms2_backend-1.0.5 spec/dummy/config/initializers/ecm_cms_backend.rb
ecm_cms2_backend-1.0.4 spec/dummy/config/initializers/ecm_cms_backend.rb
ecm_cms2_backend-1.0.3 spec/dummy/config/initializers/ecm_cms_backend.rb