OSDN Git Service

rename model name
[pettanr/pettanr.git] / app / controllers / speech_balloon_templates_controller.rb
index 132aae7..0b2d024 100644 (file)
@@ -8,10 +8,6 @@ class SpeechBalloonTemplatesController < ApplicationController
     before_filter :authenticate_user, :only => []
   end
   before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
-
-  def self.model
-    SpeechBalloonTemplate
-  end
   
   def index
     filer_list
@@ -27,7 +23,6 @@ class SpeechBalloonTemplatesController < ApplicationController
   
   def show_html_format format
     format.html {
-      @speech_balloon_template = @item
     }
   end
   
@@ -61,8 +56,8 @@ class SpeechBalloonTemplatesController < ApplicationController
   end
   
   def destroy
-    @speech_balloon_template = SpeechBalloonTemplate.find(params[:id])
-    @speech_balloon_template.destroy
+    @item = SpeechBalloonTemplate.find(params[:id])
+    @item.destroy
 
     respond_to do |format|
       format.html { redirect_to :action => :list }