12737: Send serialized attributes when save()
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Wed, 16 May 2018 13:24:12 +0000 (10:24 -0300)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Wed, 16 May 2018 13:24:12 +0000 (10:24 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>

apps/workbench/app/models/arvados_base.rb

index e68cc89a4f87e76cf376da0222dd1d272eb5f3c7..73830a4666138eedf79c9953c74b93ffd5cc3553 100644 (file)
@@ -207,7 +207,7 @@ class ArvadosBase < ActiveRecord::Base
       # old value in the update/create command) or has been added to
       # #changed by ActiveRecord's #attr= method.
       if changed.include? col.name or
-          (self.class.serialized_attributes.include? col.name and
+          ([Hash, Array].include?(attributes[col.name].class) and
            @loaded_attributes[col.name])
         obdata[col.name.to_sym] = self.send col.name
       end