Sha256: 9acb6de5ab23b44503bd93ea819fc2e13e32779f7f791307ef9c45acba18028e

Contents?: true

Size: 744 Bytes

Versions: 12

Compression:

Stored size: 744 Bytes

Contents

module Cmor
  module Cms
    module Backend
      class NavigationItemsController < Cmor::Core::Backend::ResourcesController::Base
        include Rao::ResourcesController::AwesomeNestedSetConcern
        include Rao::ResourcesController::ActsAsPublishedConcern

        def self.resource_class
          Cmor::Cms::NavigationItem
        end

        private

        def load_collection_scope
          super.joins(:navigation).includes(:page)
        end

        def permitted_params
          params.require(:navigation_item)
                .permit(:navigation_id, :page_id, :highlights_on, :key, :name, :parent_id, :options, :url, :published, *Cmor::Cms::Configuration.navigation_item_properties)
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cmor_cms_backend-0.0.55.pre app/controllers/cmor/cms/backend/navigation_items_controller.rb
cmor_cms_backend-0.0.54.pre app/controllers/cmor/cms/backend/navigation_items_controller.rb
cmor_cms_backend-0.0.53.pre app/controllers/cmor/cms/backend/navigation_items_controller.rb
cmor_cms_backend-0.0.52.pre app/controllers/cmor/cms/backend/navigation_items_controller.rb
cmor_cms_backend-0.0.51.pre app/controllers/cmor/cms/backend/navigation_items_controller.rb
cmor_cms_backend-0.0.50.pre app/controllers/cmor/cms/backend/navigation_items_controller.rb
cmor_cms_backend-0.0.49.pre app/controllers/cmor/cms/backend/navigation_items_controller.rb
cmor_cms_backend-0.0.48.pre app/controllers/cmor/cms/backend/navigation_items_controller.rb
cmor_cms_backend-0.0.45.pre app/controllers/cmor/cms/backend/navigation_items_controller.rb
cmor_cms_backend-0.0.44.pre app/controllers/cmor/cms/backend/navigation_items_controller.rb
cmor_cms_backend-0.0.43.pre app/controllers/cmor/cms/backend/navigation_items_controller.rb
cmor_cms_backend-0.0.42.pre app/controllers/cmor/cms/backend/navigation_items_controller.rb