lib/neo4j/active_node/id_property.rb in neo4j-6.1.4 vs lib/neo4j/active_node/id_property.rb in neo4j-6.1.5

- old
+ new

@@ -127,24 +127,22 @@ def find_by_neo_id(id) Neo4j::Node.load(id) end def find_by_id(id) - self.where(id_property_name => id).first + all.where(id_property_name => id).first end def find_by_ids(ids) - self.where(id_property_name => ids).to_a + all.where(id_property_name => ids).to_a end def id_property(name, conf = {}) self.manual_id_property = true 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 } end end # rubocop:disable Style/PredicateName def has_id_property?