]> git.openstreetmap.org Git - rails.git/blobdiff - lib/osm_community_index.rb
Switch to using FrozenRecord for loading communities
[rails.git] / lib / osm_community_index.rb
index f738e8ae88b23cdef15b69281c713c28a3a1a8ec..519306d8f72a008dc0d1dc261050ba0c231478c8 100644 (file)
@@ -1,12 +1,2 @@
 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")
-    JSON.parse(File.read(json_file))
-  end
 end