Skip to content

Commit

Permalink
Merge pull request #11 from samvera-labs/simple-schema-loader-decorator
Browse files Browse the repository at this point in the history
🎁 Add SimpleSchemaLoaderDecorator for work types
  • Loading branch information
kirkkwang authored Mar 15, 2024
2 parents e35a628 + 972d067 commit 031f11f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/services/hyrax/simple_schema_loader_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

# OVERRIDE Hyrax v5.0.0 to add schemas that are located in config/metadata/*.yaml

module Hyrax
module SimpleSchemaLoaderDecorator
def config_search_paths
super + [HykuKnapsack::Engine.root]
end
end
end

Hyrax::SimpleSchemaLoader.prepend(Hyrax::SimpleSchemaLoaderDecorator)

0 comments on commit 031f11f

Please sign in to comment.