Skip to content

Commit

Permalink
🐛 resolve no method error in staging
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ShanaLMoore committed Oct 3, 2023
1 parent b03a6b4 commit 902dbe7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/forms/hyrax/forms/admin/appearance_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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
Expand Down

0 comments on commit 902dbe7

Please sign in to comment.