From 902dbe768e9d4a11f7d2f147b7e0d771da4708cd Mon Sep 17 00:00:00 2001 From: Shana Moore Date: Tue, 3 Oct 2023 09:23:45 -0700 Subject: [PATCH] :bug: resolve no method error in staging When we deployed to staging we were getting an error about calling .delete on nil. default_button_background_color needed to be defined in the appearance decorator. --- app/forms/hyrax/forms/admin/appearance_decorator.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/forms/hyrax/forms/admin/appearance_decorator.rb b/app/forms/hyrax/forms/admin/appearance_decorator.rb index ddafc962..a07eb9be 100644 --- a/app/forms/hyrax/forms/admin/appearance_decorator.rb +++ b/app/forms/hyrax/forms/admin/appearance_decorator.rb @@ -18,6 +18,7 @@ module AppearanceDecorator 'footer_link_color' => '#985F03', 'footer_link_hover_color' => '#000000', 'primary_button_hover_color' => '#CE8C00', + 'default_button_background_color' => '#ffffff', 'default_button_border_color' => '#5B5B5B', 'default_button_text_color' => '#FFFFFF', 'active_tabs_background_color' => '#FFFFFF', @@ -32,7 +33,7 @@ module AppearanceDecorator # OVERRIDE to add adventist's custom header & footer def default_values - ADL_DEFAULT_FONTS.merge(ADL_DEFAULT_COLORS) + @default_values ||= ADL_DEFAULT_FONTS.merge(ADL_DEFAULT_COLORS) end def custom_adl_header_footer_color