Sha256: 4a06acf7d1f8cb787074ec0df2c4cc20877266bb3882ed0be5dbb8be60598f85

Contents?: true

Size: 560 Bytes

Versions: 5

Compression:

Stored size: 560 Bytes

Contents

module Cmor
  module Core
    module Backend
      module ActiveStorage
        class BlobsController < Cmor::Core::Backend::ResourcesController::Base
          def self.resource_class
            ::ActiveStorage::Blob
          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(:blob).permit()
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cmor_core_backend-0.0.5.pre app/controllers/cmor/core/backend/active_storage/blobs_controller.rb
cmor_core_backend-0.0.4.pre app/controllers/cmor/core/backend/active_storage/blobs_controller.rb
cmor_core_backend-0.0.3.pre app/controllers/cmor/core/backend/active_storage/blobs_controller.rb
cmor_core_backend-0.0.2.pre app/controllers/cmor/core/backend/active_storage/blobs_controller.rb
cmor_core_backend-0.0.1.pre app/controllers/cmor/core/backend/active_storage/blobs_controller.rb