diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-01-04 17:38:24 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-01-04 17:38:24 +1100 |
commit | f7c383f2579babafe0ad9e8832abd787fbe532f3 (patch) | |
tree | bffd859d1e41232794aea5f231176d8468a2bdb9 | |
parent | d64fbe634756ee9525b32a26a98cf0036758f11f (diff) |
PublicBody.locale doesn't exist anymore
-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 b48c57228..50071f1b1 100644 --- a/app/models/public_body.rb +++ b/app/models/public_body.rb @@ -247,13 +247,13 @@ class PublicBody < ActiveRecord::Base # When name or short name is changed, also change the url name def short_name=(short_name) - globalize.write(self.class.locale || I18n.locale, :short_name, short_name) + globalize.write(I18n.locale, :short_name, short_name) self[:short_name] = short_name self.update_url_name end def name=(name) - globalize.write(self.class.locale || I18n.locale, :name, name) + globalize.write(I18n.locale, :name, name) self[:name] = name self.update_url_name end |