Module: Neo4j::ActiveNode::ClassMethods

Includes:
OrmAdapter::ToAdapter
Defined in:
lib/neo4j/active_node.rb,
lib/neo4j/active_node/orm_adapter.rb

Instance Method Summary collapse

Instance Method Details

#nodeify(object) ⇒ Object



67
68
69
70
71
72
73
# File 'lib/neo4j/active_node.rb', line 67

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