I hit a weird error that ultimately was my fault, but it exposed a use-before-initialize bug in ActiveHash::Relation#method_missing on the .scopes class_attribute. I changed the class_attribute to a class method with a memoized class variable that is lazily initialized on reference.
I hit a weird error that ultimately was my fault, but it exposed a use-before-initialize bug in
ActiveHash::Relation#method_missing
on the.scopes
class_attribute. I changed the class_attribute to a class method with a memoized class variable that is lazily initialized on reference.This is a low-impact addition.