[openstreetmap/openstreetmap-website] Change language immediately after updating settings (#1883)

Jamie Guthrie notifications at github.com
Sun May 27 11:21:47 UTC 2018


jguthrie100 commented on this pull request.



> @@ -712,6 +713,7 @@ def update_user(user, params)
     end
 
     if user.save
+      @preferred_languages = current_user.preferred_languages

It was a hack, that in combination with the removed memoization in `user.rb` resulted in the preferred_languages being recomputed

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1883#discussion_r191073366
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180527/9a13ba98/attachment.html>


More information about the rails-dev mailing list