From abfbfeaf2de22ddbb047a4c2c4f8b1b11ea6b480 Mon Sep 17 00:00:00 2001 From: Martin Simpson Date: Tue, 2 Apr 2024 20:50:31 +0700 Subject: [PATCH] missing Loadpath --- lib/hyku_knapsack/engine.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/hyku_knapsack/engine.rb b/lib/hyku_knapsack/engine.rb index 60c4901..a40037c 100644 --- a/lib/hyku_knapsack/engine.rb +++ b/lib/hyku_knapsack/engine.rb @@ -26,6 +26,10 @@ class Engine < ::Rails::Engine config.after_initialize do my_engine_root = HykuKnapsack::Engine.root.to_s + + # Append our locales so they have precedence + I18n.load_path += Dir[HykuKnapsack::Engine.root.join("config", "locales", "*.{rb,yml}")] + 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