lib/active_graph/node/has_n.rb in activegraph-10.1.0 vs lib/active_graph/node/has_n.rb in activegraph-10.1.1

- old
+ new

@@ -251,11 +251,13 @@ association_proxy_cache.clear end def relationship_corresponding_rel(relationship, direction, target_class) self.class.associations.find do |_key, assoc| - assoc.relationship_class_name == relationship.class.name || - (assoc.relationship_type == relationship.type.to_sym && assoc.target_class == target_class && assoc.direction == direction) + assoc.direction == direction && ( + assoc.relationship_class_name == relationship.class.name || + (assoc.relationship_type == relationship.type.to_sym && assoc.target_class == target_class) + ) end end private