Sha256: 49c6ff6ff97a5110db9e1c0b32fe47593f3aa0eedb4382d432fb657c39244126
Contents?: true
Size: 647 Bytes
Versions: 22
Compression:
Stored size: 647 Bytes
Contents
module Neo4j::ActiveNode::Initialize extend ActiveSupport::Concern include Neo4j::Shared::Initialize attr_reader :called_by # called when loading the node from the database # @param [Neo4j::Node] persisted_node the node this class wraps # @param [Hash] properties of the persisted node. def init_on_load(persisted_node, properties) self.class.extract_association_attributes!(properties) @_persisted_obj = persisted_node changed_attributes_clear! @attributes = convert_and_assign_attributes(properties) end def init_on_reload(reloaded) @attributes = nil init_on_load(reloaded, reloaded.props) end end
Version data entries
22 entries across 22 versions & 2 rubygems
Version | Path |
---|---|
neo4j-9.2.3 | lib/neo4j/active_node/initialize.rb |
neo4j-9.2.2 | lib/neo4j/active_node/initialize.rb |