Skip to content

Commit

Permalink
Merge branch 'main' into i867-make-imagemagick-limits-configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanaLMoore committed Nov 7, 2024
2 parents 9315a82 + 2df048f commit 1525be5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions config/initializers/pre_wings.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
Rails.application.config.to_prepare do
WINGS_CONCERNS = [AdminSet, Collection, ConferenceItem, Dataset, Etd, ExamPaper, GenericWork, Image, JournalArticle, Oer, PublishedWork, Thesis].freeze
end

Rails.application.config.after_initialize do
Valkyrie::MetadataAdapter.register(
Freyja::MetadataAdapter.new,
:freyja
)
Valkyrie.config.metadata_adapter = :freyja

Hyrax.query_service.services[0].custom_queries.register_query_handler(Hyrax::CustomQueries::FindBySlug)
Hyrax.query_service.services[1].custom_queries.register_query_handler(Wings::CustomQueries::FindBySlug)
end

0 comments on commit 1525be5

Please sign in to comment.