mirror of
https://github.com/heartcombo/devise.git
synced 2026-02-19 02:44:31 -05:00
We need to explicitly pass the `locale` around from the options (passed to `warden.authenticate!` for instance) or the `I18n.locale` when logging out and redirecting the user via `throw :warden`, otherwise in a multi-locale app we'd lose the locale previously set / passed around and fallback to the default for that flash message. This is a follow-up of the fixes in #5567 where we implemented the locale passing logic down to the failure app, but it missed these places where we were using `throw :warden`. Closes #5812
9 lines
138 B
Ruby
9 lines
138 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AdminsController < ApplicationController
|
|
before_action :authenticate_admin!
|
|
|
|
def index
|
|
end
|
|
end
|