aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorjpl2016-12-05 17:15:56 +0100
committerjpl2016-12-05 17:15:56 +0100
commita78a551d49202c581ef83e6f0ed9fcf43aaab8cc (patch)
tree7748154c9e1c59a41bc3dfae612cb8abb5cf89ea /app/controllers/application_controller.rb
parent52d3e29d48e8c3f2b7a220a7feb67e42b4c88f9d (diff)
downloadchouette-core-a78a551d49202c581ef83e6f0ed9fcf43aaab8cc.tar.bz2
Refs #912: adding alternate layout, starting new nav system
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb3
1 files changed, 3 insertions, 0 deletions
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!