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

Jamie Guthrie notifications at github.com
Sun May 27 11:22:12 UTC 2018


jguthrie100 commented on this pull request.



> @@ -189,7 +189,7 @@ def preferred_language
   end
 
   def preferred_languages
-    @preferred_languages ||= Locale.list(languages)
+    Locale.list(languages)

Added and `after_save` method and it works much better

-- 
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_r191073374
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180527/8ab015cf/attachment.html>


More information about the rails-dev mailing list