Sha256: 6a3d0eb096497d1eca2f7a6459b0c8cf3ed46572aad84b8f821687d334dee139
Contents?: true
Size: 633 Bytes
Versions: 13
Compression:
Stored size: 633 Bytes
Contents
module Cmor module System module ActiveStorage class AttachmentsController < Cmor::Core::Backend::ResourcesController::Base def self.engine_class ::Cmor::System::Engine end 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
Version data entries
13 entries across 13 versions & 1 rubygems