OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add binder
[pettanr/pettanr.git]
/
lib
/
peta
/
editize.rb
diff --git
a/lib/peta/editize.rb
b/lib/peta/editize.rb
index
ce2be2f
..
ff8550b
100644
(file)
--- a/
lib/peta/editize.rb
+++ b/
lib/peta/editize.rb
@@
-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