andreasronge/neo4j — Issue #153: <type>_rels method helper not available on Neo4j::Node in expand block
Author: pehrlich
Created: 2012-02-02 06:22:00+00:00
State: open

# works:
> u.goals_rels
=> # u.expand {|n| n.goals_rels.find_all {|r| r[:latest] == true } }.to_a
NoMethodError: undefined method `goals_rels' for #<#:0x5190b512>

# I thought it may be that the search was deepening to non-user nodes, but it looks like that is not the case-- only one node is being searched:
> u.expand {|n| p n.class; n.rels.find_all {|r| r[:latest] == true }; p 'ok'; n.rels }.to_a
Neo4j::Node
"ok"
=> [Goal 2058...