[openstreetmap/openstreetmap-website] Add Communities page (#3301)
Brian DeRocher
notifications at github.com
Fri Jun 24 03:32:44 UTC 2022
@openbrian commented on this pull request.
> @@ -0,0 +1,12 @@
+module OsmCommunityIndex
+ require "yaml"
+
+ def self.community_index
+ @community_index ||= community_index_from_json
+ end
+
+ def self.community_index_from_json
+ json_file = Rails.root.join("node_modules/osm-community-index/dist/resources.json")
Thinking about it a bit, that would be more complicated to sync. Maybe OSM should be the system of record for communities.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3301#discussion_r905688799
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/3301/review/1017945337 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220623/ce9eb574/attachment.htm>
More information about the rails-dev
mailing list