svenfuchs/globalize3 — pull request #167 by danbeaulieu (2012-11-04 14:24:08+00:00)
Title: Add failing test to show error in saving translations

I am running into an issue where if I create a new model with translated attributes in one locale and then reload it in a different locale (for instance, a user visits the page, and performs some action with forces a model save) and save it without any changes to the translated attributes, a new translation record is created with nil values for the locale. Is this expected behaviour?

I can see in lib/globalize/active_record/adapter.rb that the logic in save_translation! is working, and the translations aren't being saved there. But somewhere else it is happening. I suspect this is actually an active record thing.