# File lib/globalize/active_record/instance_methods.rb, line 131 def clone obj = super return obj unless respond_to?(:translated_attribute_names) obj.instance_variable_set(:@translations, nil) if new_record? # Reset the collection because of rails bug: http://pastie.org/1521874 obj.instance_variable_set(:@globalize, nil ) each_locale_and_translated_attribute do |locale, name| obj.globalize.write(locale, name, globalize.fetch(locale, name) ) end return obj end