rails 3.1+ fix, closes #7

also make tests actually exercise model_classes, so we can catch stuff
like this more easily :P
rails 4 support \o/