Module: CurationConcerns::WorkBehavior
- Extended by:
- ActiveSupport::Concern
- Includes:
- HasRepresentative, HumanReadableType, InAdminSet, Naming, NestedWorks, Noid, Permissions, RequiredMetadata, Serializers, Suppressible, WithFileSets, GlobalID::Identification, Hydra::AccessControls::Embargoable, Hydra::WithDepositor, Hydra::Works::WorkBehavior, Solrizer::Common
- Defined in:
- app/models/concerns/curation_concerns/work_behavior.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#etag ⇒ Object
TODO: Move this into ActiveFedora.
Methods included from Suppressible
#suppressed?, #to_sipity_entity
Methods included from NestedWorks
Methods included from WithFileSets
#cleanup_file_sets, #copy_visibility_to_files, #file_set_ids
Methods included from Serializers
Methods included from Permissions::Readable
#private?, #public?, #registered?
Methods included from Permissions::Writable
Methods included from Noid
Methods included from HumanReadableType
Instance Method Details
#etag ⇒ Object
TODO: Move this into ActiveFedora
28 29 30 31 |
# File 'app/models/concerns/curation_concerns/work_behavior.rb', line 28 def etag raise "Unable to produce an etag for a unsaved object" unless persisted? ldp_source.head.etag end |