OSDN Git Service

fix: any
[pettanr/pettanr.git] / app / controllers / resource_picture_pictures_controller.rb
index 8a0ddc3..84cd98d 100644 (file)
@@ -1,9 +1,9 @@
 class ResourcePicturePicturesController < ApplicationController
   if Manifest.manifest.magic_numbers['run_mode'] == 0
-    before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
+    before_action :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
   else
-    before_filter :authenticate_reader, :only => [:index, :show, :by_original_picture, :by_resource_picture, :by_picture]
-    before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
+    before_action :authenticate_reader, :only => [:index, :show, :by_original_picture, :by_resource_picture, :by_picture]
+    before_action :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
   end
   
   def index
@@ -11,15 +11,15 @@ class ResourcePicturePicturesController < ApplicationController
   end
   
   def by_original_picture
-    filer_list
+    filer_list param: params[:id]
   end
   
   def by_resource_picture
-    filer_list
+    filer_list param: params[:id]
   end
   
   def by_picture
-    filer_list
+    filer_list param: params[:id]
   end
   
   def show