Sha256: b14b755cc0c3dc98c78b7198e2c725ba654eabfd3df23ebf6e462bb96ed71e7a
Contents?: true
Size: 550 Bytes
Versions: 7
Compression:
Stored size: 550 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 ) end end
Version data entries
7 entries across 7 versions & 1 rubygems