]> 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 17353fe96ddc398bc6c42730bd4f0882e3e47772..50435ca85d5181d87fd7415a1a7a93562122636c 100644 (file)
@@ -107,8 +107,7 @@ class SiteController < ApplicationController
   end
 
   def communities
-    @locale = I18n.locale
-    @local_chapters = OsmCommunityIndex::LocalChapter.local_chapters_with_locale(@locale)
+    @local_chapters = Community.where(:type => "osm-lc").where.not(:id => "OSMF")
   end
 
   def export; end