Skip to content

Commit

Permalink
JSON Fields Actor
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Simpson committed Mar 7, 2024
1 parent 9186417 commit 44c4fbc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/hyku_knapsack/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ class Engine < ::Rails::Engine
config.after_initialize do
my_engine_root = HykuKnapsack::Engine.root.to_s
paths = ActionController::Base.view_paths.collect{|p| p.to_s}

# Remove the Hyrax Orcid JSON Actor as we have our own - this should not be namespaced
Hyrax::CurationConcern.actor_factory.middlewares.delete(Hyrax::Actors::Orcid::JSONFieldsActor)

# This is the opposite of what you usually want to do. Normally app views override engine views
# but in our case things in the Knapsack override what is in the application
paths = [my_engine_root + '/app/views'] + paths
Expand Down

0 comments on commit 44c4fbc

Please sign in to comment.