]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Refactor osm-community-index and local chapters models
[rails.git] / app / controllers / site_controller.rb
index 8323ae5e7324b07bfd6870c7154cd93a76003bad..c2d5a73ae4720a6fb043c8367b4bbf27e1a349bf 100644 (file)
@@ -107,8 +107,8 @@ class SiteController < ApplicationController
   end
 
   def communities
-    @locale = params[:communities_locale] || I18n.locale
-    @local_chapters = Communities.local_chapters(@locale)
+    @locale = I18n.locale
+    @local_chapters = LocalChapter.local_chapters_with_locale(@locale)
   end
 
   def export; end