Sha256: 093d5464fb88a1ed0a7936791c68bab5972c8697fbf3e13103eb4e2a3775c07e

Contents?: true

Size: 530 Bytes

Versions: 4

Compression:

Stored size: 530 Bytes

Contents

# This stands in for an object to be created from the BatchUploadForm.
# It should never actually be persisted in the repository.
# The properties on this form should be copied to a real work type.
class BatchUploadItem < ActiveFedora::Base
  include ::CurationConcerns::WorkBehavior
  include ::CurationConcerns::BasicMetadata
  include Sufia::WorkBehavior

  # This mocks out the behavior of Hydra::PCDM::PcdmBehavior
  def in_collection_ids
    []
  end

  def create_or_update
    raise "This is a read only record"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sufia-7.2.0 app/models/batch_upload_item.rb
sufia-7.1.0 app/models/batch_upload_item.rb
sufia-7.0.0 app/models/batch_upload_item.rb
sufia-7.0.0.rc2 app/models/batch_upload_item.rb