diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-02-07 14:02:15 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-02-07 14:02:15 +1100 |
commit | 8d57b8c476b1459e1fa5bd9d1af9390f053911bb (patch) | |
tree | b76582ae007881b12909776bead1f3f6f781d1c0 | |
parent | 702399a111382e16e7e7b29ec7a90d98d5cd27aa (diff) |
Update to globalize3 method
-rw-r--r-- | app/models/public_body.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb index 27fbb1470..1b254afcc 100644 --- a/app/models/public_body.rb +++ b/app/models/public_body.rb @@ -79,7 +79,7 @@ class PublicBody < ActiveRecord::Base if translation_attrs.respond_to? :each_value # Hash => updating translation_attrs.each_value do |attrs| next if skip?(attrs) - t = translation(attrs[:locale]) || PublicBody::Translation.new + t = translation_for(attrs[:locale]) || PublicBody::Translation.new t.attributes = attrs calculate_cached_fields(t) t.save! |