Do not assume uuid_or_hash is a string when using it in string
authorWard Vandewege <ward@clinicalfuture.com>
Sun, 3 Feb 2013 19:07:24 +0000 (14:07 -0500)
committerWard Vandewege <ward@clinicalfuture.com>
Sun, 3 Feb 2013 19:07:24 +0000 (14:07 -0500)
concatenation.

app/models/orvos_base.rb

index 2a84f72b16340fcd268521a74c8dbe17ca53de1c..7262df061d625472a2eef539ea5d2f9f75e45dfc 100644 (file)
@@ -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 + '=')