OSDN Git Service

Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git] / app / assets / javascripts / models / license_group.js.coffee
index db6e759..75980bf 100644 (file)
@@ -1,25 +1,17 @@
-class LicenseGroup extends Item\r
-  @single: () ->\r
+class Pettanr.LicenseGroup extends Peta.Template\r
+  url: '/license_groups/'\r
+  \r
+  @singular: () ->\r
     'LicenseGroup'\r
   \r
   @plural: () ->\r
     'LicenseGroups'\r
   \r
   defaults: {\r
-    id: 11\r
+    id: null\r
   } \r
   \r
   initialize: () ->\r
-    confirm("Welcome to Panel")\r
-  \r
-  @test: () ->\r
-    confirm( @single())\r
-    confirm( @plural() )\r
-    confirm( @class_name() )\r
-    confirm( @element_name() )\r
-    confirm( @table_name() )\r
-    \r
+    if @id\r
+      @url = @url + @id\r
   \r
-  test: () ->\r
-\r
-@Panel = Panel\r