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

Version Path
cmor_system_backend-0.0.29.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.28.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.27.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.26.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.25.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.24.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.22.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.21.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.20.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.19.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.18.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.17.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.16.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.15.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.14.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.13.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.12.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.11.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.10.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb
cmor_system_backend-0.0.9.pre app/controllers/cmor/system/backend/active_storage/attachments_controller.rb