lib/neo4j/shared/property.rb in neo4j-6.0.3 vs lib/neo4j/shared/property.rb in neo4j-6.0.4
- old
+ new
@@ -51,9 +51,14 @@
def send_props(hash)
return hash if hash.blank?
hash.each { |key, value| send("#{key}=", value) }
end
+ def reload_properties!(properties)
+ @attributes = nil
+ convert_and_assign_attributes(properties)
+ end
+
protected
# This method is defined in ActiveModel.
# When each node is loaded, it is called once in pursuit of 'sanitize_for_mass_assignment', which this gem does not implement.
# In the course of doing that, it calls :attributes, which is quite expensive, so we return immediately.