This commit is contained in:
2015-07-12 07:15:57 +02:00

View File

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