Class variables are such a bane in Ruby. Doesn't help that Rails keeps promoting this practice: https://bugs.ruby-lang.org/issues/21942
The unnecessary mutation is why I call this out as an antipattern and always leads to unwanted surprises: https://alchemists.io/articles/ruby_antipatterns#_class_variables




