diff options
author | Henare Degan <henare.degan@gmail.com> | 2012-12-09 18:35:39 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2012-12-11 11:09:35 +1100 |
commit | 0d533ce1d56e1ec1446774cc6fff52451a844f3f (patch) | |
tree | ea6b4ce7d43c5432defaa1f1d8f17e170802bd0c /app/controllers/general_controller.rb | |
parent | a01611c61b27cbcbe046d2073c791a407743ace8 (diff) |
Switch to new method name
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r-- | app/controllers/general_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb index 3ba636e29..dc6fc5de5 100644 --- a/app/controllers/general_controller.rb +++ b/app/controllers/general_controller.rb @@ -26,7 +26,7 @@ class GeneralController < ApplicationController @locale = self.locale_from_params() locale_condition = 'public_body_translations.locale = ?' conditions = [locale_condition, @locale] - PublicBody.with_locale(@locale) do + PublicBody.with_locales(@locale) do if body_short_names.empty? # This is too slow @popular_bodies = PublicBody.visible.find(:all, |