OSDN Git Service

t#28864:import/ key name overwrite
authoryasushiito <yas@pen-chan.jp>
Thu, 28 Jun 2012 23:27:54 +0000 (08:27 +0900)
committeryasushiito <yas@pen-chan.jp>
Thu, 28 Jun 2012 23:27:54 +0000 (08:27 +0900)
vendor/plugins/pettan_importer/lib/pettan_importer.rb

index befe722..f28ce1e 100644 (file)
@@ -33,7 +33,7 @@ module ActiveRecord
             r.attributes = attr
           else
             r = self.new attr
-            r[key] = name if r[key].blank?
+            r[key] = name
           end
           r
         end