lib/neo4j/active_node/id_property.rb in neo4j-5.2.15 vs lib/neo4j/active_node/id_property.rb in neo4j-6.0.0.alpha.1

- old
+ new

@@ -138,10 +138,10 @@ self.where(id_property_name => ids).to_a end def id_property(name, conf = {}) self.manual_id_property = true - Neo4j::Session.on_session_available do |_| + Neo4j::Session.on_next_session_available do |_| @id_property_info = {name: name, type: conf} TypeMethods.define_id_methods(self, name, conf) constraint(name, type: :unique) unless conf[:constraint] == false self.define_singleton_method(:find_by_id) { |key| self.where(name => key).first }