OSDN Git Service

fix Manifest
[pettanr/pettanr.git] / lib / manifest / model / list / public.rb
diff --git a/lib/manifest/model/list/public.rb b/lib/manifest/model/list/public.rb
new file mode 100644 (file)
index 0000000..3395610
--- /dev/null
@@ -0,0 +1,30 @@
+module Manifest
+  module ListModule
+    class PublicList < BaseList
+      
+      def initialize model, list_name, list_manifest
+        super
+      end
+      
+      def set_default
+        super
+      end
+      
+      def init
+        super
+      end
+      
+      def self.add_action item_name, action_name, list_name, list_conf
+        return
+        model = item_name.classify.constantize
+        controller_name = model.plural + 'Controller'
+        controller = controller_name.constantize
+        return if controller.method_defined?(action_name)
+        controller.define_method(action_name) do 
+          public_list
+        end
+      end
+    end
+    
+  end
+end