]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Refactor i18n so that all community information is available
[rails.git] / app / controllers / site_controller.rb
index a73d1e2e50e74f9595605917440a60a5cf7ba4f5..50435ca85d5181d87fd7415a1a7a93562122636c 100644 (file)
@@ -107,8 +107,7 @@ class SiteController < ApplicationController
   end
 
   def communities
   end
 
   def communities
-    OsmCommunityIndex::LocalChapter.add_to_i18n # this should be called on app init
-    @local_chapters = OsmCommunityIndex::LocalChapter.local_chapters
+    @local_chapters = Community.where(:type => "osm-lc").where.not(:id => "OSMF")
   end
 
   def export; end
   end
 
   def export; end