diff options
| author | Xinhui | 2017-11-22 16:32:32 +0100 | 
|---|---|---|
| committer | Xinhui | 2017-11-28 12:21:33 +0100 | 
| commit | 86fd42a9136cb6eef87ecec3d0b2bcf579667798 (patch) | |
| tree | a3ef5d442d91ea9cbf6608f2e9111691e8bd4567 /app/controllers/application_controller.rb | |
| parent | bc7888297ae545ae3c453c5c9481d22b37a0dad4 (diff) | |
| download | chouette-core-86fd42a9136cb6eef87ecec3d0b2bcf579667798.tar.bz2 | |
Add has_paper_trail on models
Diffstat (limited to 'app/controllers/application_controller.rb')
| -rw-r--r-- | app/controllers/application_controller.rb | 2 | 
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 | 
