lib/neo4j/active_node/has_n.rb in neo4j-8.0.0.alpha.9 vs lib/neo4j/active_node/has_n.rb in neo4j-8.0.0.alpha.10
- old
+ new
@@ -384,10 +384,10 @@
association_proxy(name).result_ids
end
define_method_unless_defined("#{name.to_s.singularize}_ids=") do |ids|
clear_deferred_nodes_for_association(name)
- association_proxy(name).replace_with(ids)
+ association_proxy(name).replace_with(Array(ids).reject(&:blank?))
end
define_method_unless_defined("#{name.to_s.singularize}_neo_ids") do
association_proxy(name).pluck(:neo_id)
end