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

Version Path
cmor_system-0.0.58.pre app/controllers/cmor/system/active_storage/attachments_controller.rb
cmor_system-0.0.57.pre app/controllers/cmor/system/active_storage/attachments_controller.rb
cmor_system-0.0.56.pre app/controllers/cmor/system/active_storage/attachments_controller.rb
cmor_system-0.0.55.pre app/controllers/cmor/system/active_storage/attachments_controller.rb
cmor_system-0.0.54.pre app/controllers/cmor/system/active_storage/attachments_controller.rb
cmor_system-0.0.53.pre app/controllers/cmor/system/active_storage/attachments_controller.rb
cmor_system-0.0.52.pre app/controllers/cmor/system/active_storage/attachments_controller.rb
cmor_system-0.0.51.pre app/controllers/cmor/system/active_storage/attachments_controller.rb
cmor_system-0.0.50.pre app/controllers/cmor/system/active_storage/attachments_controller.rb
cmor_system-0.0.49.pre app/controllers/cmor/system/active_storage/attachments_controller.rb
cmor_system-0.0.48.pre app/controllers/cmor/system/active_storage/attachments_controller.rb
cmor_system-0.0.45.pre app/controllers/cmor/system/active_storage/attachments_controller.rb
cmor_system-0.0.44.pre app/controllers/cmor/system/active_storage/attachments_controller.rb