Sha256: 8e2adad754bd9f06d2381ca6f4fa49f0cebc5709dccfcc3077939fd0fa2b32e7

Contents?: true

Size: 681 Bytes

Versions: 22

Compression:

Stored size: 681 Bytes

Contents

module Cmor::Showcase
  class ItemsController < Cmor::Core::Backend::ResourcesController::Base
    include Rao::ResourcesController::ActsAsListConcern
    include Rao::ResourcesController::ActsAsPublishedConcern
    include Rao::ResourcesController::FriendlyIdConcern

    def self.resource_class
      Cmor::Showcase::Item
    end

    private

    def after_reposition_location
      last_location # collection_path
    end

    def load_collection_scope
      super.includes(:category)
    end

    def permitted_params
      params.require(:item).permit(:category_id, :identifier, :name, :body, :published, assets: [], append_assets: [], overwrite_assets: [])
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
cmor_showcase-0.0.60.pre app/controllers/cmor/showcase/items_controller.rb
cmor_showcase-0.0.59.pre app/controllers/cmor/showcase/items_controller.rb
cmor_showcase-0.0.58.pre app/controllers/cmor/showcase/items_controller.rb
cmor_showcase-0.0.57.pre app/controllers/cmor/showcase/items_controller.rb
cmor_showcase-0.0.56.pre app/controllers/cmor/showcase/items_controller.rb
cmor_showcase-0.0.55.pre app/controllers/cmor/showcase/items_controller.rb
cmor_showcase-0.0.54.pre app/controllers/cmor/showcase/items_controller.rb
cmor_showcase-0.0.53.pre app/controllers/cmor/showcase/items_controller.rb
cmor_showcase-0.0.52.pre app/controllers/cmor/showcase/items_controller.rb
cmor_showcase-0.0.51.pre app/controllers/cmor/showcase/items_controller.rb
cmor_showcase-0.0.50.pre app/controllers/cmor/showcase/items_controller.rb
cmor_showcase-0.0.49.pre app/controllers/cmor/showcase/items_controller.rb
cmor_showcase-0.0.48.pre app/controllers/cmor/showcase/items_controller.rb
cmor_showcase-0.0.45.pre app/controllers/cmor/showcase/items_controller.rb
cmor_showcase-0.0.44.pre app/controllers/cmor/showcase/items_controller.rb
cmor_showcase-0.0.43.pre app/controllers/cmor/showcase/items_controller.rb
cmor_showcase-0.0.42.pre app/controllers/cmor/showcase/items_controller.rb
cmor_showcase-0.0.41.pre app/controllers/cmor/showcase/items_controller.rb
cmor_showcase-0.0.40.pre app/controllers/cmor/showcase/items_controller.rb
cmor_showcase-0.0.39.pre app/controllers/cmor/showcase/items_controller.rb