This allows us to query the records to get the local chapters, which is more flexible and allows us to use other resources too.
14 lines
276 B
Ruby
14 lines
276 B
Ruby
# A backend for FrozenRecord
|
|
|
|
module OsmCommunityIndex
|
|
module ResourceBackend
|
|
def self.filename(_model)
|
|
"resources.json"
|
|
end
|
|
|
|
def self.load(file_path)
|
|
resources = JSON.parse(File.read(file_path))
|
|
resources["resources"].values
|
|
end
|
|
end
|
|
end
|