Sha256: 6e4dbb247421eed026b356988b251f56775e4b2fb01939cba848a3cad35dd6f8
Contents?: true
Size: 565 Bytes
Versions: 57
Compression:
Stored size: 565 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 && changed_attributes.clear @attributes = convert_and_assign_attributes(properties) end end
Version data entries
57 entries across 57 versions & 1 rubygems