OSDN Git Service

fix: fetch fail
[pettanr/pettanr.git] / app / controllers / top_controller.rb
index 91fb1d8..9747cb6 100644 (file)
@@ -1,11 +1,11 @@
 class TopController < 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_reader, :only => []#[:index]
-    before_filter :authenticate_user, :only => []
-    before_filter :authenticate_author, :only => []
+    before_action :authenticate_reader, :only => [:index]
+    before_action :authenticate_user, :only => []
+    before_action :authenticate_author, :only => []
   end
   
   def index