OSDN Git Service

v07
[pettanr/pettanr.git] / app / assets / javascripts / peta / leaf.js.coffee
1 class Peta.Leaf extends Peta.Content\r
2   \r
3   @parent_model: () ->\r
4     Manifest.manifest().models[@my_peta().parent_item_name].classify()\r
5   \r
6   @binder_model: () ->\r
7     @parent_model()\r
8   \r
9   @destination_model: () ->\r
10     Manifest.manifest().models[@my_peta().destination_item_name].classify()\r
11   \r
12   @binder_key: () ->\r
13     @my_class().my_peta().parent_item_name + '_id'\r
14   \r
15   @destination_key: () ->\r
16     @my_class().my_peta().destination_item_name + '_id'\r
17   \r