diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-12-05 18:50:10 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-12-05 18:55:51 +0000 |
commit | 0cbf14f4780a9c38eb73f24f0052e50c60c40769 (patch) | |
tree | ff3eae5cd3a7c496d24208b04c0da37c2e8c7e41 /app/models | |
parent | 3ad5277ed2c9f98508a7208848e125d274c86a3b (diff) |
Make sure globalize uses the right locale version when updating.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/public_body.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb index c007afb6e..c0ad19b76 100644 --- a/app/models/public_body.rb +++ b/app/models/public_body.rb @@ -260,13 +260,13 @@ class PublicBody < ActiveRecord::Base # When name or short name is changed, also change the url name def short_name=(short_name) - globalize.write(I18n.locale, :short_name, short_name) + globalize.write(Globalize.locale, :short_name, short_name) self[:short_name] = short_name self.update_url_name end def name=(name) - globalize.write(I18n.locale, :name, name) + globalize.write(Globalize.locale, :name, name) self[:name] = name self.update_url_name end |