X-Git-Url: http://git.osdn.net/view?p=pettanr%2Fpettanr.git;a=blobdiff_plain;f=app%2Fcontrollers%2Ftop_controller.rb;h=9747cb616c62490513c85755f7cbe25d9d33185b;hp=37b4adad65f6a656da429a98d1f3ce5c3267c8b9;hb=8b6d5a073c9efade47ae6e0ee897d71defa85a1d;hpb=34c7085d1693a103bc14da5727e5f04d24ac40a1 diff --git a/app/controllers/top_controller.rb b/app/controllers/top_controller.rb index 37b4adad..9747cb61 100644 --- a/app/controllers/top_controller.rb +++ b/app/controllers/top_controller.rb @@ -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