paranoia_test.rb
29.9 KB
-
Test for 'cannot touch a new record object' error. · 1897f97b
This is a test for a case when a model has a has_one association with an after_validation callback, and we have failed validation. Paranoia will attempt to touch the deleted_at column on the child record that has been built but not saved. Fixes #180
Nick Anderson committed