Module: ActiveGraph::Node::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#nodeify(object) ⇒ Object



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

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