Module: Neo4j::Shared::SerializedProperties::ClassMethods

Defined in:
lib/neo4j/shared/serialized_properties.rb

Instance Method Summary collapse

Instance Method Details

#inherit_serialized_properties(other) ⇒ Object



25
26
27
# File 'lib/neo4j/shared/serialized_properties.rb', line 25

def inherit_serialized_properties(other)
  other.serialized_properties = self.serialized_properties
end

#inherited(other) ⇒ Object



20
21
22
23
# File 'lib/neo4j/shared/serialized_properties.rb', line 20

def inherited(other)
  inherit_serialized_properties(other) if self.respond_to?(:serialized_properties)
  super
end