Closed Hampei closed 1 year ago
We have some code where we reload an instance and then call update_attributes.
instance.reload.update_attributes error: error, last_sync_failure: Time.now
After the update from 1.2.0 to 1.6.1 this suddenly fails because it's trying to do an insert instead of an update in the database (making a database restraint fail).
The really funny thing is
instance.reload.reload.update_attributes error: error, last_sync_failure: Time.now
works just fine. As does
instance.tap(&:restore_attributes).update_attributes error: error, last_sync_failure: Time.now
No time right now to create a small testrepo, but figured I'd mention it anyway.
No other gems or code where updated.
Very odd and probably not related to this gem.
We have some code where we reload an instance and then call update_attributes.
After the update from 1.2.0 to 1.6.1 this suddenly fails because it's trying to do an insert instead of an update in the database (making a database restraint fail).
The really funny thing is
works just fine. As does
No time right now to create a small testrepo, but figured I'd mention it anyway.
No other gems or code where updated.