Sha256: 0a3b4d0bcc9b57a26447e73ea0d26dd2a56078a469547abf24d2b16720923374

Contents?: true

Size: 709 Bytes

Versions: 14

Compression:

Stored size: 709 Bytes

Contents

module Cmor
  module System
    module Backend
      module ActiveStorage
        class AttachmentsController < Cmor::Core::Backend::ResourcesController::Base
          def self.engine_class
            ::Cmor::System::Backend::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
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cmor_system_backend-0.0.43.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.42.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.41.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.40.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.39.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.38.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.37.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.36.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.35.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.34.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.33.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.32.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.31.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.30.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb