Skip to content

Commit

Permalink
Merge pull request #327 from scientist-softserv/move-simple-schema-lo…
Browse files Browse the repository at this point in the history
…ader

🐛 Fix boot problem
  • Loading branch information
ShanaLMoore authored Feb 1, 2024
2 parents 45f441e + 1ccdccc commit 7037a9b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions config/initializers/simple_schema_loader.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hyrax::SimpleSchemaLoader.prepend(IiifPrint::SimpleSchemaLoaderDecorator)
3 changes: 3 additions & 0 deletions lib/iiif_print.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
require "iiif_print/split_pdfs/child_work_creation_from_pdf_service"
require "iiif_print/split_pdfs/derivative_rodeo_splitter"
require "iiif_print/split_pdfs/destroy_pdf_child_works_service"
require "iiif_print/persistence_layer"
require "iiif_print/persistence_layer/active_fedora_adapter"
require "iiif_print/persistence_layer/valkyrie_adapter"

# rubocop:disable Metrics/ModuleLength
module IiifPrint
Expand Down
4 changes: 0 additions & 4 deletions lib/iiif_print/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ class Engine < ::Rails::Engine
Hyrax::IiifManifestPresenter.prepend(IiifPrint::IiifManifestPresenterBehavior)
Hyrax::IiifManifestPresenter::Factory.prepend(IiifPrint::IiifManifestPresenterFactoryBehavior)
Hyrax::ManifestBuilderService.prepend(IiifPrint::ManifestBuilderServiceBehavior)

# Hyrax::SimpleSchemaLoader was introduced in Hyrax 3.0; as this gem supports Hyrax 2.9.6 we need to be cautious
'Hyrax::SimpleSchemaLoader'.safe_constantize&.prepend(IiifPrint::SimpleSchemaLoaderDecorator)

Hyrax::Renderers::FacetedAttributeRenderer.prepend(Hyrax::Renderers::FacetedAttributeRendererDecorator)
Hyrax::WorksControllerBehavior.prepend(IiifPrint::WorksControllerBehaviorDecorator)

Expand Down

0 comments on commit 7037a9b

Please sign in to comment.