Allow inheritance when checking model class on a relation
Merge pull request #515 from http-418/master

Allow inheritance when checking model class on a relation