OSDN Git Service

temp
[pettanr/pettanr.git] / app / controllers / scrolls_controller.rb
index ef9bb0c..863243e 100644 (file)
@@ -9,26 +9,13 @@ class ScrollsController < ApplicationController
     before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
   end
   before_filter :authenticate_admin!, :only => [:list, :browse]
-
-  @@model = Scroll
-  @@controller = Pettanr::Application::manifest.controller_managers[@@model.item_name]
-  @@profiler_manager = Pettanr::Application::manifest.profiler_managers[@@model.item_name]
+  
+  def self.model
+    Scroll
+  end
   
   def index
-    action_name = params[:action]
-    @action = @@controller.open(action_name, params, @operators)
-    @items = @action.items 
-    respond_to do |format|
-      format.html {
-        @filer = @action.filer
-        render :template => 'system/filer', :locals => {
-          :filer => @filer
-        }
-      }
-      format.json { render json: @items.to_json(@@model.list_json_opt) }
-      format.atom 
-      format.rss
-    end
+    public_list
   end
 
   def show