Skip to content

Commit

Permalink
🎁 Override Hyku::WorksControllerBehavior
Browse files Browse the repository at this point in the history
This commit will account for a proposed `Hyku::WorksControllerBehavior`
in the Hyku/Hyrax 5 upgrade branch.
  • Loading branch information
Kirk Wang committed Jan 2, 2024
1 parent 2dfd14b commit cad2cf3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/iiif_print/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ class Engine < ::Rails::Engine
Hyrax::ManifestBuilderService.prepend(IiifPrint::ManifestBuilderServiceBehavior)
Hyrax::Renderers::FacetedAttributeRenderer.prepend(Hyrax::Renderers::FacetedAttributeRendererDecorator)
Hyrax::WorksControllerBehavior.prepend(IiifPrint::WorksControllerBehaviorDecorator)
# Hyku::WorksControllerBehavior was introduced in Hyku v6.0.0+
'Hyku::WorksControllerBehavior'.safe_constantize&.prepend(IiifPrint::WorksControllerBehaviorDecorator)
Hyrax::WorkShowPresenter.prepend(IiifPrint::WorkShowPresenterDecorator)
Hyrax::IiifHelper.prepend(IiifPrint::IiifHelperDecorator)

Expand Down

0 comments on commit cad2cf3

Please sign in to comment.