OSDN Git Service

fix test
[pettanr/pettanr.git] / app / controllers / scrolls_controller.rb
index 5c933c5..3b59b72 100644 (file)
@@ -96,7 +96,8 @@ class ScrollsController < ApplicationController
   end
   
   def destroy
-    @item = Scroll.edit(params[:id], @operators)
+    set_model
+    @item = @my_model_class.edit(params[:id], @operators)
     respond_to do |format|
       if @item.destroy_with_leafs
         flash[:notice] = I18n.t('flash.notice.destroyed', :model => Scroll.model_name.human)