lib/neo4j/shared/property.rb in neo4j-5.0.0 vs lib/neo4j/shared/property.rb in neo4j-5.0.1

- old
+ new

@@ -123,9 +123,16 @@ module ClassMethods extend Forwardable def_delegators :declared_property_manager, :serialized_properties, :serialized_properties=, :serialize, :declared_property_defaults + def inherited(other) + self.declared_property_manager.registered_properties.each_pair do |prop_key, prop_def| + other.property(prop_key, prop_def.options) + end + super + end + # Defines a property on the class # # See active_attr gem for allowed options, e.g which type # Notice, in Neo4j you don't have to declare properties before using them, see the neo4j-core api. #