projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f90267f
)
9684: update arvados_model -> recursive_stringify to convert ":foo" to "foo"
author
radhika <radhika@curoverse.com>
Thu, 18 Aug 2016 18:22:59 +0000
(14:22 -0400)
committer
radhika <radhika@curoverse.com>
Thu, 18 Aug 2016 18:22:59 +0000
(14:22 -0400)
services/api/app/models/arvados_model.rb
patch
|
blob
|
history
diff --git
a/services/api/app/models/arvados_model.rb
b/services/api/app/models/arvados_model.rb
index a942b57e931fafa50e025b84b7bbd58710f65838..3c79f021ae46fca6f152d5a191e7879d6183fecc 100644
(file)
--- 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