From 5b8c0e84999e224cec1e922d1f41f8b099fca94f Mon Sep 17 00:00:00 2001 From: Peter Yates Date: Sun, 10 Dec 2023 00:12:38 +0000 Subject: [PATCH] Fix guide building when Rails logging is included --- guide/lib/helpers.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/guide/lib/helpers.rb b/guide/lib/helpers.rb index 6b59b4cb..57c8b103 100644 --- a/guide/lib/helpers.rb +++ b/guide/lib/helpers.rb @@ -1,10 +1,13 @@ require 'pry' +require 'rails' require 'action_view' require 'active_model' require 'active_support/core_ext/string' require 'htmlbeautifier' require 'slim/erb_converter' +Rails.logger = Logger.new($stdout) + Dir.glob(File.join('./lib', '**', '*.rb')).sort.each { |f| require f } $LOAD_PATH.unshift(File.expand_path("../../lib", "lib"))