From a78a551d49202c581ef83e6f0ed9fcf43aaab8cc Mon Sep 17 00:00:00 2001 From: jpl Date: Mon, 5 Dec 2016 17:15:56 +0100 Subject: Refs #912: adding alternate layout, starting new nav system --- app/controllers/application_controller.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/controllers/application_controller.rb') diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index c2414f5bb..b616def70 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -2,6 +2,9 @@ class ApplicationController < ActionController::Base include Pundit rescue_from Pundit::NotAuthorizedError, with: :user_not_authorized + # Comment to activate the new layout + # layout 'application_new' + # TODO : Delete hack to authorize Cross Request for js and json get request from javascript protect_from_forgery unless: -> { request.get? && (request.format.json? || request.format.js?) } before_action :authenticate_user! -- cgit v1.2.3