Sha256: ff76df01d517faf03c1558a00178e866b498ef13dc44f6e6c24300f8c5b3e8c1
Contents?: true
Size: 1.22 KB
Versions: 2
Compression:
Stored size: 1.22 KB
Contents
module Ecm module Files module Backend class AttachmentsController < Itsf::Backend::Resource::BaseController include ResourcesController::Sorting include 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ecm_files_backend-0.0.2 | app/controllers/ecm/files/backend/attachments_controller.rb |
ecm_files_backend-0.0.1 | app/controllers/ecm/files/backend/attachments_controller.rb |