Skip to content

Commit

Permalink
fix ability to edit valkyrie backed file sets.
Browse files Browse the repository at this point in the history
there was an error because `#representative_id=` did not exist. refer to #5575 for more details.

co-authored-by: braydon <braydon.justice@1268456bcltd.ca>
  • Loading branch information
alishaevn and sephirothkod committed Jun 7, 2023
1 parent b28d8ff commit c12b8fc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/models/hyrax/file_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ def representative_id
id
end

##
# @return [Valkyrie::ID]
def representative_id=(input)
# saving a file set using valkyrie would err because this method didn't exist.
Rails.logger.warn('This is not a valid method for file sets')
id
end

##
# @return [Boolean] true
def pcdm_object?
Expand Down

0 comments on commit c12b8fc

Please sign in to comment.