lib/will_translate/instance_methods.rb
# Saves translations for this object. Called automatically by +after_save+ hook.
Saves translations for this object. Called automatically by +after_save+ hook.
Saves translations for this object . Called automatically by + after_save + hook .
def save_translations    
      @translations.each do |locale,fields|
        fields.each do |field,tx|
          if tx.content.nil?
            tx.delete
            @translations[locale.to_sym][field.to_sym] = nil
          else
            tx.save
          end
        end
      end
    end
def save_translations @translations . each do | locale , fields | fields . each do | field , tx | if tx . content . nil? tx . delete @translations [ locale . to_sym ] [ field . to_sym ] = nil else tx . save end end end end
Saves translations for this object.
Saves translations for this object .