OSDN Git Service

add binder
[pettanr/pettanr.git] / lib / peta / editize.rb
index ce2be2f..ff8550b 100644 (file)
@@ -46,6 +46,14 @@ module Peta
       super.merge!({'id' => self.dom_item_id(name)})
     end
     
+    def post_attribute_key
+      if self.new_record?
+        self.dom_pool_type
+      else
+        super
+      end
+    end
+    
   end
   
 end