OSDN Git Service

change editor
[pettanr/pettanr.git] / app / controllers / scrolls_controller.rb
index 3c88b60..f95ade4 100644 (file)
@@ -24,11 +24,10 @@ class ScrollsController < ApplicationController
   
   def show_html_format format
     format.html {
-      play_list = Locmare::ListGroup.list(
+      @play_list = Locmare::ListGroup.list(
         'scroll_panels', 'by_scroll', @operators, 
-        {:id => @item.id, :my_play => @item.own?(@operators)}
+        {:id => @item.id, :page_size => -1}  # set no limit options}
       )
-      @play_count = play_list.count(@operators)
     }
   end
   
@@ -51,26 +50,10 @@ class ScrollsController < ApplicationController
           @new_panel_items = assist_items('home', 'panels')
         end
       }
-      format.json { render json: @items.to_json }
+      list_json_format @list, format
     end
   end
   
-  def count
-    list_count
-  end
-  
-  def count_by_author
-    list_count
-  end
-  
-  def count_by_panel
-    list_count
-  end
-  
-  def count_play
-    list_count
-  end
-  
   def new
     form_new
   end