I got two types of relationships between two classes. In one of them, I need to establish the origin
, however I don't know how. Anyone idea?
class A
include Neo4j::ActiveNode
...
has_many :out, :method1, model_class: B
has_many :out, :method2, model_class: B
...
end
class B
include Neo4j::ActiveNode
...
has_one :in, :something, model_class: A, origin: ?????
...
end
Graph
The type of the relationship is the default one ("#"+ name of the method).