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