Created
November 12, 2021 21:36
-
-
Save mark-dce/f6013a07690db9767e39878ae8b1d0dc to your computer and use it in GitHub Desktop.
New Work Creation (Abridged)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stack = Hyrax::CurationConcern.actor | |
curation_concern = Work.new | |
user = User.where(email: 'mark@curationexperts.com').first | |
attributes = {:title=>["Testing Actor Stack"], :rights_statement=>["http://rightsstatements.org/vocab/UND/1.0/"], :creator=>["Me"]} | |
env = Hyrax::Actors::Environment.new(curation_concern, user.ability, attributes) | |
stack.create(env) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This seems to work too... the actor stack is doing some additional things, but not clear which (e.g. badges, workflow, ???)