companygardener/lookup_by — pull request #10 by pd (2014-04-17 20:11:21+00:00)
Title: Raise if lookup_for target does not use lookup_by

The previous behavior was just to let a NoMethodError bubble up in response to calling #lookup on the constantized class name.

Saw someone calling `lookup_for` without a corresponding `lookup_by`, and they just received a less-than-helpful NoMethodError. This will hopefully clarify a bit.