Skip to content

Commit

Permalink
Check for object type rather than class
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadel committed Oct 6, 2021
1 parent ad8cb53 commit a415ee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zizia/hyrax/hyrax_record_importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def find_file_path(filename)
private

def update_for(existing_record:, update_record:)
if existing_record.class == Collection
if update_record.object_type == :collection
collection_updater(existing_record: existing_record, update_record: update_record)
else
curation_concern_updater(existing_record: existing_record, update_record: update_record)
Expand Down

0 comments on commit a415ee6

Please sign in to comment.