Sha256: 89137ef9f09cbc838498384469c8eace5685257d901b91486cd72a1736e17a10
Contents?: true
Size: 1.25 KB
Versions: 55
Compression:
Stored size: 1.25 KB
Contents
module Cmor module Files module Backend class AttachmentsController < Cmor::Core::Backend::ResourcesController::Base include Rao::ResourcesController::SortingConcern include Rao::ResourcesController::BatchActionsConcern def self.resource_class ActiveStorage::Attachment end # def destroy_many # @collection = load_collection_scope.where(id: params[:ids]) # @collection.destroy_all # respond_with @collection, location: after_destroy_many_location, noticse: t('.success') # end # def publish_many # @collection = load_collection_scope.where(id: params[:ids]) # @collection.map(&:publish!) # respond_with @collection, location: last_location, noticse: t('.success') # end # def unpublish_many # @collection = load_collection_scope.where(id: params[:ids]) # @collection.map(&:unpublish!) # respond_with @collection, location: last_location, noticse: t('.success') # end private def after_destroy_many_location last_location end def permitted_params params.require(:attachment).permit() end end end end end
Version data entries
55 entries across 55 versions & 1 rubygems