]> 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 73e4ef51d5ced1dca199062575554ac35308fa80..50435ca85d5181d87fd7415a1a7a93562122636c 100644 (file)
@@ -107,8 +107,7 @@ class SiteController < ApplicationController
   end
 
   def communities
-    @locale = params[:communities_locale] || I18n.locale
-    @local_chapters = Communities.local_chapters
+    @local_chapters = Community.where(:type => "osm-lc").where.not(:id => "OSMF")
   end
 
   def export; end