Method: Neo4j::ActiveNode::Query::QueryProxyEnumerable#==
- Defined in:
- lib/neo4j/active_node/query/query_proxy_enumerable.rb
#==(other) ⇒ Object
Does exactly what you would hope. Without it, comparing ‘bobby.lessons == sandy.lessons` would evaluate to false because it would be comparing the QueryProxy objects, not the lessons themselves.
70 71 72 |
# File 'lib/neo4j/active_node/query/query_proxy_enumerable.rb', line 70 def ==(other) self.to_a == other end |