diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-07-21 18:08:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-21 18:08:02 +0200 |
commit | bd1545de5ee9655130e5357bb9cb6449520a6292 (patch) | |
tree | af0b640a9b337e291622585e2986e516170f88b7 /config | |
parent | bd87e6667975bc3b5bfaf3e1cdff97e041ed4c98 (diff) |
Change locale detection to run once per session (#8657)
Fix #6462
Diffstat (limited to 'config')
-rw-r--r-- | config/application.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/application.rb b/config/application.rb index 4534ede49..f49deffbb 100644 --- a/config/application.rb +++ b/config/application.rb @@ -114,6 +114,9 @@ module Mastodon Doorkeeper::AuthorizationsController.layout 'modal' Doorkeeper::AuthorizedApplicationsController.layout 'admin' Doorkeeper::Application.send :include, ApplicationExtension + Devise::FailureApp.send :include, AbstractController::Callbacks + Devise::FailureApp.send :include, HttpAcceptLanguage::EasyAccess + Devise::FailureApp.send :include, Localized end end end |