aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorTeddy Wing2017-12-05 18:26:57 +0100
committerTeddy Wing2017-12-05 18:26:57 +0100
commit47181fd81105396b2db394958c39a6e40bc6f0f0 (patch)
treee95e67d8479f348453e3e494b5991053b15ba3de /app/controllers/application_controller.rb
parent1098e24f15b235dce127f0398adac4bbf7cfe463 (diff)
parent9f1aa4d40d7d968963dae5799e15ad5da4cbcbc5 (diff)
downloadchouette-core-47181fd81105396b2db394958c39a6e40bc6f0f0.tar.bz2
Merge remote-tracking branch 'origin/master' into 5024-prevent-duplicate-referentials-from-being-created-during-parallel-db-transactions--rb201711271659
Conflicts: app/models/referential.rb A whitespace conflict in a place I don't even remember editing? Okaay.
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 6a9f6942f..97f5548ae 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -1,5 +1,7 @@
class ApplicationController < ActionController::Base
+ include PaperTrailSupport
include Pundit
+
rescue_from Pundit::NotAuthorizedError, with: :user_not_authorized
# TODO : Delete hack to authorize Cross Request for js and json get request from javascript