mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 12:39:53 +01:00
Return 403 by default for Pundit errors
This commit is contained in:
parent
94c9fa12fb
commit
0c9bb05f29
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,8 @@ module Justask
|
|||
config.i18n.fallbacks = [I18n.default_locale]
|
||||
config.i18n.enforce_available_locales = false
|
||||
|
||||
config.action_dispatch.rescue_responses["Pundit::NotAuthorizedError"] = :forbidden
|
||||
|
||||
config.after_initialize do
|
||||
Dir.glob Rails.root.join('config/late_initializers/*.rb') do |f|
|
||||
require f
|
||||
|
|
Loading…
Reference in a new issue