OSDN Git Service

fix test
[pettanr/pettanr.git] / app / controllers / speeches_controller.rb
index 2ee6880..b4f2249 100644 (file)
@@ -4,7 +4,7 @@ class SpeechesController < ApplicationController
     before_filter :authenticate_author, :only => [:new, :edit, :create, :update, :destroy]
   else
     before_filter :authenticate_reader, :only => [
-      :index, :show, :by_speech_balloon, :by_writing_format, :count, :count_by_speech_balloon, :count_by_writing_format
+      :index, :show, :by_author, :count, :count_by_author
     ]
     before_filter :authenticate_user, :only => [:new, :edit, :create, :update, :destroy]
     before_filter :authenticate_author, :only => [:new, :edit, :create, :update, :destroy]
@@ -19,11 +19,7 @@ class SpeechesController < ApplicationController
     filer_list
   end
   
-  def by_speech_balloon
-    filer_list
-  end
-  
-  def by_writing_format
+  def by_author
     filer_list
   end
   
@@ -47,11 +43,7 @@ class SpeechesController < ApplicationController
     list_count
   end
   
-  def count_by_speech_balloon
-    list_count
-  end
-  
-  def count_by_writing_format
+  def count_by_author
     list_count
   end