Store loclae to session

This commit is contained in:
Andreas Stephanides
2015-07-12 07:14:17 +02:00
parent 5b09d51365
commit f16c9a89d5

View File

@@ -11,7 +11,10 @@
flash.now[:notice]= "#{params[:locale]} translation not available"
logger.error flash.now[:notice]
end
else
I18n.locale = session[:locale] || :de
end
session[:locale] = I18n.locale
end
def after_sign_in_path_for(resource)