X-Git-Url: http://git.osdn.net/view?p=pettanr%2Fpettanr.git;a=blobdiff_plain;f=app%2Fcontrollers%2Fscrolls_controller.rb;h=863243e6145476abeded82905e9033d0523ad056;hp=ef9bb0c9c6a4365ae1f855660f9539e63a7c9a1d;hb=9e6a7b976f22e15609976da5194ea6344e71ea4d;hpb=c7a2f802d50eb9ce97def7dafe6d28e18f52aa4f diff --git a/app/controllers/scrolls_controller.rb b/app/controllers/scrolls_controller.rb index ef9bb0c9..863243e6 100644 --- a/app/controllers/scrolls_controller.rb +++ b/app/controllers/scrolls_controller.rb @@ -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