Method: Neo4j::ActiveNode::Persistence#create_model
- Defined in:
- lib/neo4j/active_node/persistence.rb
#create_model ⇒ Object
Creates a model with values matching those of the instance attributes and returns its id.
56 57 58 59 60 61 |
# File 'lib/neo4j/active_node/persistence.rb', line 56 def create_model node = _create_node(props_for_create) init_on_load(node, node.props) @deferred_nodes = nil true end |