FIX: Ensure correct locale is set during RenderEmpty responses

Follow-up to bcb0e623
This commit is contained in:
David Taylor
2020-07-28 22:20:38 +01:00
parent 74ab4f3bff
commit f25fa83b6d
2 changed files with 9 additions and 2 deletions

View File

@ -110,7 +110,7 @@ class ApplicationController < ActionController::Base
class PluginDisabled < StandardError; end
rescue_from RenderEmpty do
render 'default/empty'
with_resolved_locale { render 'default/empty' }
end
rescue_from ArgumentError do |e|