Sha256: 2ba37c76e892eef5e210bcec9c8e4bdc1cb864ff4888e95abd2acf561b524909
Contents?: true
Size: 618 Bytes
Versions: 23
Compression:
Stored size: 618 Bytes
Contents
module Cmor module System 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
23 entries across 23 versions & 1 rubygems