[openstreetmap/openstreetmap-website] Add Communities page (#3301)
Tom Hughes
notifications at github.com
Wed Mar 2 17:50:49 UTC 2022
@tomhughes commented on this pull request.
> + end
+
+ def self.init_local_chapters
+ raw_local_chapters = load_raw_local_chapters
+ local_chapters = []
+ raw_local_chapters.each do |chapter|
+ id = chapter[:id]
+ url = chapter[:resource]["strings"]["url"]
+ local_chapters.push(LocalChapter.new(id, url))
+ end
+ local_chapters
+ end
+
+ def self.load_raw_local_chapters
+ community_index = OsmCommunityIndex.community_index
+ raw_local_chapters = []
We are on 2.7+ as far as I know - it's what INSTALL says and it's what rubocop is targetting.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3301#discussion_r817948539
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/3301/review/897942383 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220302/90854265/attachment.htm>
More information about the rails-dev
mailing list