require 'application_responder' class ApplicationController < ActionController::Base self.responder = ApplicationResponder respond_to :html, :json WillPaginate.per_page = 10 # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception def after_sign_in_path_for(resource_or_scope) if current_user super else hq_dashboard_index_path end end end