Sha256: 1287d21c1cd87c807bffdfada7ebbbd43f5e7d17298bc8353c89567868426782
Contents?: true
Size: 616 Bytes
Versions: 5
Compression:
Stored size: 616 Bytes
Contents
module Cmor module Core module Backend module ActiveStorage class AttachmentsController < Cmor::Core::Backend::ResourcesController::Base def self.resource_class ::ActiveStorage::Attachment end def self.available_rest_actions super - %i(new create edit update) end private def resource_namespace :active_storage end def permitted_params params.require(:attachment).permit(:name, :record_type, :record_id, :blob) end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems