openstreetmap-website/app/models/community.rb
Andy Allan bb7f5ac2c8 Switch to using FrozenRecord for loading communities
This allows us to query the records to get the local chapters, which
is more flexible and allows us to use other resources too.
2022-07-27 16:19:08 +01:00

8 lines
206 B
Ruby

class Community < FrozenRecord::Base
self.base_path = Rails.root.join("node_modules/osm-community-index/dist/")
self.backend = OsmCommunityIndex::ResourceBackend
def url
strings["url"]
end
end