Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions config/initializers/hyrax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,11 @@
# Injected via `rails g hyku_knapsack:work_resource OralHistory --flexible`
config.register_curation_concern :oral_history
end

# Ensure that only the registered concerns can be nested within each other
# Hyrax::NestedWorks loads the valid_child_concerns prior to the above configuration
# This removes Hyku's default work types from the list of valid child concerns
Hyrax.config.curation_concerns.each do |concern|
concern.valid_child_concerns = Hyrax.config.curation_concerns
end
end
Loading