Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
Deprecate add_constituent
Browse files Browse the repository at this point in the history
This was only used by dor-utils and we've stopped using it there:
sul-dlss-deprecated/dor-utils#41
  • Loading branch information
jcoyne committed Mar 13, 2019
1 parent 397638f commit be3d19a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dor/models/concerns/contentable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,12 @@ def decommission(tag)
TagService.add self, "Decommissioned : #{tag}"
end

# TODO: Move to Dor-Utils.
# Adds a RELS-EXT constituent relationship to the given druid
# @param [String] druid the parent druid of the constituent relationship
# e.g.: <fedora:isConstituentOf rdf:resource="info:fedora/druid:hj097bm8879" />
def add_constituent(druid)
add_relationship :is_constituent_of, ActiveFedora::Base.find(druid)
end
deprecation_deprecate add_constituent: 'Use add_relationship :is_constituent_of instead'
end
end

0 comments on commit be3d19a

Please sign in to comment.