From 96907212cf201d1e14c45a07884177271790d683 Mon Sep 17 00:00:00 2001 From: Lori Bailey <44073106+elceebee@users.noreply.github.com> Date: Wed, 20 Dec 2023 15:54:57 +0000 Subject: [PATCH] Skip BetterHtml config in production --- config/initializers/better_html.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/initializers/better_html.rb b/config/initializers/better_html.rb index 6ab6c2ef10..0004d43a5e 100644 --- a/config/initializers/better_html.rb +++ b/config/initializers/better_html.rb @@ -1,3 +1,5 @@ +return if Rails.env.production? + BetterHtml.config = BetterHtml::Config.new( YAML.safe_load(File.read(Rails.root.join(".better-html.yml")))