Skip to content

Commit

Permalink
remove override in favor of hyku's solution
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiahstroud committed Feb 25, 2025
1 parent 647e146 commit 9378c51
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
13 changes: 0 additions & 13 deletions app/models/solr_document_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,6 @@ def relation
def file_format
self['file_format_tesim']
end

# OVERRIDE: Hyku v6.0.0 to prevent undefined method `active_fedora_basis_path' errors
def hydra_model(classifier: nil)
model = first('has_model_ssim')&.safe_constantize
# HACK: without this, #hydra_model will falsely return ActiveFedora::Base,
# which causes numerous undefined method `active_fedora_basis_path' errors
# related to polymorphic pathing. This is because, when
# `Hyrax.config.valkyrie_transition?` is true, Valkyrie works are expected
# to end in "Resource".
return model if HYKUUP_VALKYRIE_ONLY_MODELS.include?(model)

super
end
end

SolrDocument.prepend(SolrDocumentDecorator)
7 changes: 0 additions & 7 deletions config/initializers/hykuup.rb

This file was deleted.

2 changes: 1 addition & 1 deletion hyrax-webapp

0 comments on commit 9378c51

Please sign in to comment.