projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5355f0a
)
Do not assume uuid_or_hash is a string when using it in string
author
Ward Vandewege <ward@clinicalfuture.com>
Sun, 3 Feb 2013 19:07:24 +0000
(14:07 -0500)
committer
Ward Vandewege <ward@clinicalfuture.com>
Sun, 3 Feb 2013 19:07:24 +0000
(14:07 -0500)
concatenation.
app/models/orvos_base.rb
patch
|
blob
|
history
diff --git
a/app/models/orvos_base.rb
b/app/models/orvos_base.rb
index 2a84f72b16340fcd268521a74c8dbe17ca53de1c..7262df061d625472a2eef539ea5d2f9f75e45dfc 100644
(file)
--- a/
app/models/orvos_base.rb
+++ b/
app/models/orvos_base.rb
@@
-102,7
+102,7
@@
class OrvosBase < ActiveRecord::Base
if uuid_or_hash.is_a? Hash
hash = uuid_or_hash
else
- hash = $orvos_api_client.api(self.class, '/' + uuid_or_hash)
+ hash = $orvos_api_client.api(self.class, '/' + uuid_or_hash
.to_s
)
end
hash.each do |k,v|
if self.respond_to?(k.to_s + '=')