app/controllers/users/omniauth_callbacks_controller.rb
def passthru_localized
    session[:omniauth_locale] = I18n.locale

    redirect_to user_omniauth_authorize_path(params[:provider])
  end
# Just saves the current locale in the session (for recall during the callback
# stage), and continues with OmniAuth as normal.
Just saves the current locale in the session (for recall during the callback
stage), and continues with OmniAuth as normal.
Just saves the current locale in the session ( for recall during the callback stage ) and continues with OmniAuth as normal .
def passthru_localized
    session[:omniauth_locale] = I18n.locale
    redirect_to user_omniauth_authorize_path(params[:provider])
  end
def passthru_localized session [ :omniauth_locale ] = I18n . locale redirect_to user_omniauth_authorize_path ( params [ :provider ] ) end
Just saves the current locale in the session (for recall during the callback
stage), and continues with OmniAuth as normal.
Just saves the current locale in the session ( for recall during the callback stage ) and continues with OmniAuth as normal .