OSDN Git Service

fix Manifest lst
[pettanr/pettanr.git] / app / controllers / scrolls_controller.rb
index 3ee8fb2..6bffe7d 100644 (file)
@@ -3,7 +3,7 @@ class ScrollsController < ApplicationController
     before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
     before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
   else
-    before_filter :authenticate_reader, :only => [:top, :index, :show, :play, :scroll_panels, :panels, :by_author, :by_panel]
+    before_filter :authenticate_reader, :only => [:top, :index, :show, :play, :by_author, :by_panel]
     before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
     before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
   end
@@ -16,14 +16,6 @@ class ScrollsController < ApplicationController
     public_list
   end
   
-  def scroll_panels
-    has_many_list
-  end
-  
-  def panels
-    has_many_list
-  end
-  
   def by_author
     filter_list
   end
@@ -75,6 +67,22 @@ class ScrollsController < ApplicationController
     end
   end
   
+  def scroll_panels_count
+    has_many_list
+  end
+  
+  def panels_count
+    has_many_list
+  end
+  
+  def count_by_author
+    filter_list
+  end
+  
+  def count_by_panel
+    filter_list
+  end
+  
   def new
     @scroll = Scroll.new
     @scroll.supply_default