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