Skip to content

Commit

Permalink
Add missing method for subject assignment used by the RepositoriesCon…
Browse files Browse the repository at this point in the history
…troller
  • Loading branch information
jrhoads committed Jan 13, 2023
1 parent 221d82a commit 44ed701
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,10 @@ def re3data=(value)
write_attribute(:re3data_id, attr)
end

def subjects=(value)
write_attribute(:subjects, Array.wrap(value))
end

def opendoar=(value)
attr = value.present? ? value[38..-1] : nil
write_attribute(:opendoar_id, attr)
Expand Down

0 comments on commit 44ed701

Please sign in to comment.