From 4a5c23cea2bcd3de6ef5d6317ce0ecc8fe5ec7ab 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..00765390 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"))