[openstreetmap/openstreetmap-website] Added JSON support to user preferences (#3164)

Andy Allan notifications at github.com
Wed Apr 7 09:46:36 UTC 2021


@gravitystorm commented on this pull request.



> @@ -0,0 +1 @@
+json.partial! @user_preferences

I should also say that the preferences are analogous to "tags" on nodes/ways/relations, in that they are already implemented in the nodes/way/relations responses so you can see how it's done there, and for json we already decided to drop the "k/v" stuff so as @pnorman mentioned it's fine to use object attributes directly for them here too.

-- 
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/3164#discussion_r608504385
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210407/626ca0a9/attachment.htm>


More information about the rails-dev mailing list