From a97792cbc3bdc2d185f05d5b396c387c8a40fc12 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Thu, 9 May 2019 11:57:13 +1000 Subject: [PATCH] Remove story from code comment --- app/models/content_configuration.rb | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/app/models/content_configuration.rb b/app/models/content_configuration.rb index abac92f466..7b94504aed 100644 --- a/app/models/content_configuration.rb +++ b/app/models/content_configuration.rb @@ -12,25 +12,14 @@ class ContentConfiguration < Spree::Preferences::FileConfiguration has_attached_file :logo_mobile_svg, default_url: "/assets/ofn-logo-mobile.svg" # Home page - # - # I intended to set a default for home_page_alert_html including I18n text. - # - # default: " - # #{I18n.t('shared.register_call.selling_on_ofn')}  - # #{I18n.t('shared.register_call.register')} - # - # " - # - # Unfortunately, this configuration is initialised and cached before locales - # are loaded. So I chose to not set a default and use a translatable view instead. - # All the following defaults using I18n don't work. - # https://github.com/openfoodfoundation/openfoodnetwork/issues/3816 preference :home_page_alert_html, :text preference :home_hero, :file preference :home_show_stats, :boolean, default: true has_attached_file :home_hero, default_url: "/assets/home/home.jpg" # Producer sign-up page + # All the following defaults using I18n don't work. + # https://github.com/openfoodfoundation/openfoodnetwork/issues/3816 preference :producer_signup_pricing_table_html, :text, default: I18n.t(:content_configuration_pricing_table) preference :producer_signup_case_studies_html, :text, default: I18n.t(:content_configuration_case_studies) preference :producer_signup_detail_html, :text, default: I18n.t(:content_configuration_detail)