Skip to content

Instantly share code, notes, and snippets.

@atomical
Created July 2, 2013 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atomical/5910653 to your computer and use it in GitHub Desktop.
Save atomical/5910653 to your computer and use it in GitHub Desktop.
after_save do |record|
record.remove_relationship(:is_manager)
record.add_relationship(:is_manager, "info:fedora/#{record.collection.id}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment