]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Switch to using FrozenRecord for loading communities
[rails.git] / app / controllers / site_controller.rb
index 524001d4db926fca2c4511451843e035fa0df25d..50435ca85d5181d87fd7415a1a7a93562122636c 100644 (file)
@@ -107,7 +107,7 @@ class SiteController < ApplicationController
   end
 
   def communities
-    @local_chapters = OsmCommunityIndex::LocalChapter.local_chapters
+    @local_chapters = Community.where(:type => "osm-lc").where.not(:id => "OSMF")
   end
 
   def export; end