Fixes a minor bug on model's attribute inheritance.
Merge pull request #976 from jails/bug/model-attribute-inheritance

Fixes a minor bug on model's attribute inheritance.