OSDN Git Service

fix: fetch fail
[pettanr/pettanr.git] / app / controllers / original_pictures_controller.rb
index 5e70e36..8246a63 100644 (file)
@@ -5,7 +5,7 @@ class OriginalPicturesController < ApplicationController
   before_action :authenticate_artist, :only => [:index, :new, :edit, :create, :update, :destroy]
   
   def index
-    filer_list
+    filer_list param: @operators
   end
 
   def show_html_format format
@@ -34,14 +34,14 @@ class OriginalPicturesController < ApplicationController
       show_json_format format
     end
   end
-
+  
   def history
     set_show
-    @history = @item.history
+    @finder = @my_action.finder(param: params[:id]).page(1).per(-1)
     
     respond_to do |format|
       format.html
-      format.json { render json: @history.to_json }
+      list_json_format @finder, format
     end
   end