It should since Type is inside the same namespace. I think it is missing the autoload definition inside ActiveRecord.