lib/neo4j/active_node/id_property.rb in neo4j-3.0.0.alpha.11 vs lib/neo4j/active_node/id_property.rb in neo4j-3.0.0.rc.2
- old
+ new
@@ -99,21 +99,23 @@
def find_by_id(key)
Neo4j::Node.load(key.to_i)
end
-
def id_property(name, conf = {})
+ @id_property_info = {name: name, type: conf}
TypeMethods.define_id_methods(self, name, conf)
-
constraint name, type: :unique
self.define_singleton_method(:find_by_id) do |key|
self.where(name => key).first
end
end
- end
+ def id_property_info
+ @id_property_info ||= false
+ end
+ end
end
end
\ No newline at end of file