diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-01-17 05:26:54 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-01-17 05:26:54 +1100 |
commit | 5f6a7a29bc1ea3784728a9c57edfa4be73d4196f (patch) | |
tree | 5a1fffb45716a2383e589d2d55bc12fa2b0ca8d7 /app/controllers/general_controller.rb | |
parent | a44431056ae75f1b2d83cb27971456d307180042 (diff) |
Set locale with I18n rather than through globalize
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..e9d51a59d 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 + I18n.with_locale(@locale) do if body_short_names.empty? # This is too slow @popular_bodies = PublicBody.visible.find(:all, |