Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
[2.1.1] Arel::Visitors::Visitor's global DISPATCH cache breaks when some visitors don't implement all visit methods #57
I've been writing some new ARel visitors and ran into a confusing problem where if I run certain custom visitors, some of their
Turns out the issue has to do with the global
This means if I have a visitor that implements only
One solution I found is to replace the constant with a per-class-object cache:
Hopefully this could make it into the next release of ARel.