OSDN Git Service

fix: any
[pettanr/pettanr.git] / app / controllers / system_pictures_controller.rb
index 5b9f7e6..4b544d3 100644 (file)
@@ -1,17 +1,13 @@
 class SystemPicturesController < ApplicationController
   if Manifest.manifest.magic_numbers['run_mode'] == 0
-    before_filter :authenticate_user, :only => []
-    before_filter :authenticate_author, :only => []
+    before_action :authenticate_user, :only => []
+    before_action :authenticate_author, :only => []
   else
-    before_filter :authenticate_resource_reader, :only => [:index, :show, :count]
-    before_filter :authenticate_user, :only => []
-    before_filter :authenticate_author, :only => []
-  end
-  before_filter :authenticate_admin!, :only => []
-
-  def self.model
-    SystemPicture
+    before_action :authenticate_resource_reader, :only => [:index, :show]
+    before_action :authenticate_user, :only => []
+    before_action :authenticate_author, :only => []
   end
+  before_action :authenticate_admin!, :only => []
   
   def index
     filer_list
@@ -19,7 +15,6 @@ class SystemPicturesController < ApplicationController
   
   def show_html_format format
     format.html {
-      @system_picture = @item
     }
   end