app/models/maestrano/connector/rails/concerns/connec_helper.rb in maestrano-connector-rails-1.0.1 vs app/models/maestrano/connector/rails/concerns/connec_helper.rb in maestrano-connector-rails-1.0.2

- old
+ new

@@ -49,19 +49,19 @@ def fold_references_helper(entity, array_of_refs, organization) ref = array_of_refs.shift field = entity[ref] - # Follow embedment path, remplace if it's a string + # Follow embedment path, remplace if it's not an array or a hash unless field.blank? case field when Array field.each do |f| fold_references_helper(f, array_of_refs.dup, organization) end when HashWithIndifferentAccess fold_references_helper(entity[ref], array_of_refs, organization) - when String + else id = field entity[ref] = [id_hash(id, organization)] end end end \ No newline at end of file