support backward compatibility for multiple polymorphic relationships for Mongoid 4