OSDN Git Service

fix: fetch fail
[pettanr/pettanr.git] / app / controllers / top_controller.rb
index 37b4ada..9747cb6 100644 (file)
@@ -1,16 +1,16 @@
 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, :ap]
-    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
     respond_to do |format|
-      format.html { render layout: 'ap' }
+      format.html { render layout: 'yasapp' }
     end
   end