From: radhika Date: Thu, 18 Aug 2016 18:22:59 +0000 (-0400) Subject: 9684: update arvados_model -> recursive_stringify to convert ":foo" to "foo" X-Git-Tag: 1.1.0~787^2~1 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/4da106ba69c8574366887a32c9e699f9b7410499 9684: update arvados_model -> recursive_stringify to convert ":foo" to "foo" --- 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