From bee832d4ef22fb911407ec5d64a476a0c6c73df5 Mon Sep 17 00:00:00 2001 From: rubic0n Date: Sun, 31 Jan 2021 17:11:02 -0600 Subject: [PATCH] Fix Zeitwerk load error for SanitizeConfig "expected file app/lib/sanitize_config.rb to define constant SanitizeConfig" --- app/lib/formatter.rb | 4 ++-- app/lib/{sanitize_config.rb => sanitize/config.rb} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename app/lib/{sanitize_config.rb => sanitize/config.rb} (100%) diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb index db5dc0ad..07c53bb9 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true require 'singleton' -require_relative './sanitize_config' +require_relative './sanitize/config' class HTMLRenderer < Redcarpet::Render::HTML def block_code(code, language) @@ -485,4 +485,4 @@ class Formatter "@#{encode(account.acct)}" end -end \ No newline at end of file +end diff --git a/app/lib/sanitize_config.rb b/app/lib/sanitize/config.rb similarity index 100% rename from app/lib/sanitize_config.rb rename to app/lib/sanitize/config.rb