lib/neo4j/active_node/id_property.rb in neo4j-9.3.0 vs lib/neo4j/active_node/id_property.rb in neo4j-9.4.0

- old
+ new

@@ -143,17 +143,17 @@ @id_property_info = {name: name, type: conf, inherited: inherited} TypeMethods.define_id_methods(self, name, conf) end - # rubocop:disable Style/PredicateName + # rubocop:disable Naming/PredicateName def has_id_property? ActiveSupport::Deprecation.warn 'has_id_property? is deprecated and may be removed from future releases, use id_property? instead.', caller id_property? end - # rubocop:enable Style/PredicateName + # rubocop:enable Naming/PredicateName def id_property? id_property_info && !id_property_info.empty? end @@ -207,10 +207,10 @@ Since you specified `constraint: false` this option can simply be removed. MSG end def id_property_name_type_value - name, type, value = Neo4j::Config.to_hash.values_at(*%w(id_property id_property_type id_property_type_value)) + name, type, value = Neo4j::Config.to_hash.values_at('id_property', 'id_property_type', 'id_property_type_value') unless name == :neo_id || (name && type && value) name = :uuid type = :auto value = :uuid