From d87adf1e173d74fb6c36772752072bfb1f6bf3d5 Mon Sep 17 00:00:00 2001 From: Benjamin Armintor Date: Thu, 12 May 2022 16:30:13 -0400 Subject: [PATCH 1/2] engine should not use Blacklight::Configuration until autoload paths are in place --- lib/blacklight_range_limit/engine.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/blacklight_range_limit/engine.rb b/lib/blacklight_range_limit/engine.rb index e9b8649a..6e25d867 100644 --- a/lib/blacklight_range_limit/engine.rb +++ b/lib/blacklight_range_limit/engine.rb @@ -15,9 +15,10 @@ class Engine < Rails::Engine config.action_dispatch.rescue_responses.merge!( "BlacklightRangeLimit::InvalidRange" => :not_acceptable ) - - config.before_configuration do - Blacklight::Configuration::FacetField.prepend BlacklightRangeLimit::FacetFieldConfigOverride + config.before_eager_load do + ActiveSupport::Reloader.to_prepare do + Blacklight::Configuration::FacetField.prepend BlacklightRangeLimit::FacetFieldConfigOverride + end end end end From 1daa7f7cc227bc05aea1d731b286d51b64ed7176 Mon Sep 17 00:00:00 2001 From: Benjamin Armintor Date: Thu, 12 May 2022 17:51:12 -0400 Subject: [PATCH 2/2] pin solr_wrapper version until 9 is is archive --- .solr_wrapper.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.solr_wrapper.yml b/.solr_wrapper.yml index 31fa2306..5c4aefde 100644 --- a/.solr_wrapper.yml +++ b/.solr_wrapper.yml @@ -1,6 +1,7 @@ # Place any default configuration for solr_wrapper here port: 8983 verbose: true +version: 8.9.0 collection: dir: solr/conf/ name: blacklight-core