Module: Dagnabit::Edge::Associations

Defined in:
lib/dagnabit/edge/associations.rb

Instance Method Summary collapse

Instance Method Details

#connects(vertex_class) ⇒ Object



5
6
7
8
# File 'lib/dagnabit/edge/associations.rb', line 5

def connects(vertex_class)
  belongs_to :parent, :class_name => vertex_class
  belongs_to :child,  :class_name => vertex_class
end