Module: ActiveGraph::Node::ClassMethods

Includes:
OrmAdapter::ToAdapter
Defined in:
lib/active_graph/node.rb,
lib/active_graph/node/orm_adapter.rb

Instance Method Summary collapse

Instance Method Details

#nodeify(object) ⇒ Object



69
70
71
72
73
74
75
# File 'lib/active_graph/node.rb', line 69

def nodeify(object)
  if object.is_a?(::ActiveGraph::Node) || object.nil?
    object
  else
    self.find(object)
  end
end