diff --git a/config/boot.rb b/config/boot.rb index ceb2bc0..4b2050d 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -4,10 +4,10 @@ require "bootsnap/setup" # Speed up boot time by caching expensive operations. # Monkey patch Array to prevent freezing errors in Rails 8.1 -# This allows older gems to modify frozen autoload_paths arrays +# This allows older gems to modify frozen autoload_paths arrays class Array alias_method :original_freeze, :freeze - + def freeze # Check if this array is being set as autoload_paths or eager_load_paths # by inspecting the call stack