]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Use each_with_object
[rails.git] / app / controllers / site_controller.rb
index 00b3e78da4c858b7c36e0211106ba1190e69436c..50435ca85d5181d87fd7415a1a7a93562122636c 100644 (file)
@@ -106,6 +106,10 @@ class SiteController < ApplicationController
     @locale = params[:about_locale] || I18n.locale
   end
 
+  def communities
+    @local_chapters = Community.where(:type => "osm-lc").where.not(:id => "OSMF")
+  end
+
   def export; end
 
   def offline; end