Sha256: 766a49bbf3f408a7253946fd28e98de0d90691ea2bb5cecd8b9249ddecaa9ba1

Contents?: true

Size: 551 Bytes

Versions: 10

Compression:

Stored size: 551 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 ::Hyrax::BasicMetadata
  include Hyrax::WorkBehavior

  attr_accessor :payload_concern # a Class name: what is this a batch of?

  # 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

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 app/models/batch_upload_item.rb
hyrax-1.1.0 app/models/batch_upload_item.rb
hyrax-1.0.5 app/models/batch_upload_item.rb
hyrax-1.0.4 app/models/batch_upload_item.rb
hyrax-1.0.3 app/models/batch_upload_item.rb
hyrax-1.0.2 app/models/batch_upload_item.rb
hyrax-1.0.1 app/models/batch_upload_item.rb
hyrax-1.0.0.rc2 app/models/batch_upload_item.rb
hyrax-1.0.0.rc1 app/models/batch_upload_item.rb
test_hyrax-0.0.1.alpha app/models/batch_upload_item.rb