From 25b1042aea9e6f20e06dd016ad33042432cbe7c4 Mon Sep 17 00:00:00 2001 From: Daniel Pierce Date: Tue, 10 Oct 2023 15:56:48 -0400 Subject: [PATCH] Provide default for characterization_options --- lib/hyrax/configuration.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/hyrax/configuration.rb b/lib/hyrax/configuration.rb index 0087c92303..5c63e732d0 100644 --- a/lib/hyrax/configuration.rb +++ b/lib/hyrax/configuration.rb @@ -168,7 +168,10 @@ def characterization_service # Options to pass to the characterization service # @!attribute [rw] characterization_options # @return [Hash] of options like {ch12n_tool: :fits_servlet} - attr_accessor :characterization_options + attr_writer :characterization_options + def characterization_options + @characterization_options ||= {} + end ## # @!attribute [w] characterization_proxy