OSDN Git Service

temp
[pettanr/pettanr.git] / app / controllers / speech_balloons_controller.rb
index 9247534..e55e176 100644 (file)
@@ -10,14 +10,12 @@ class SpeechBalloonsController < ApplicationController
   end
   before_filter :authenticate_admin!, :only => [:list, :browse]
 
-  @@model = SpeechBalloon
+  def self.model
+    SpeechBalloon
+  end
+  
   def index
-    set_filer
-
-    respond_to do |format|
-      format_filer format
-      format.json { render json: @items.to_json(@@model.list_json_opt) }
-    end
+    public_list
   end
   
   def show