This allows us to query the records to get the local chapters, which is more flexible and allows us to use other resources too.
8 lines
206 B
Ruby
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
|