Sha256: 2446657537bce78000bb8455da2f50310e2cd9bbf6e9d2f4eb9f625c884de187
Contents?: true
Size: 606 Bytes
Versions: 2
Compression:
Stored size: 606 Bytes
Contents
module CurationConcern module_function def mint_a_pid Sufia::Noid.namespaceize(Sufia::Noid.noidify(Sufia::IdService.mint)) end def actor(curation_concern, *args) actor_identifier = curation_concern.class.to_s klass = const_get("#{actor_identifier}Actor") klass.new(curation_concern, *args) end def attach_file(generic_file, user, file_to_attach) Sufia::GenericFile::Actions.create_content( generic_file, file_to_attach, file_to_attach.original_filename, 'content', user ) true rescue ActiveFedora::RecordInvalid false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
curate-0.5.0 | app/services/curation_concern.rb |
curate-0.4.2 | app/services/curation_concern.rb |