--- /dev/null
+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