From 4da106ba69c8574366887a32c9e699f9b7410499 Mon Sep 17 00:00:00 2001 From: radhika Date: Thu, 18 Aug 2016 14:22:59 -0400 Subject: [PATCH] 9684: update arvados_model -> recursive_stringify to convert ":foo" to "foo" --- services/api/app/models/arvados_model.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/api/app/models/arvados_model.rb b/services/api/app/models/arvados_model.rb index a942b57e93..3c79f021ae 100644 --- a/services/api/app/models/arvados_model.rb +++ b/services/api/app/models/arvados_model.rb @@ -398,7 +398,7 @@ class ArvadosModel < ActiveRecord::Base end false else - (x.class == Symbol) or (x.class == String and x.start_with?(':')) + (x.class == Symbol) or (x.class == String and x.start_with?(':') and !x.start_with?('::')) end end @@ -414,7 +414,7 @@ class ArvadosModel < ActiveRecord::Base elsif x.is_a? Symbol x.to_s else - if x.is_a? String and x.start_with?(':') + if x.is_a? String and x.start_with?(':') and !x.start_with?('::') x[1..-1] else x -- 2.30.2