rails/activerecord/test
Sean Griffin 7550f0a016 Ensure cyclic associations w/ autosave don't cause duplicate errors
This code is so fucked. Things that cause this bug not to replicate:

- Defining the validation before the association (we end up calling
  `uniq!` on the errors in the autosave validation)
- Adding `accepts_nested_attributes_for` (I have no clue why. The only
  thing it does that should affect this is adds `autosave: true` to the
  inverse reflection, and doing that manually doesn't fix this).

This solution is a hack, and I'm almost certain there's a better way to
go about it, but this shouldn't cause a huge hit on validation times,
and is the simplest way to get it done.

Fixes #20874.
2015-07-18 10:30:58 -04:00
..
active_record/connection_adapters rm Column#cast_type 2015-02-03 15:02:18 -07:00
assets
cases Ensure cyclic associations w/ autosave don't cause duplicate errors 2015-07-18 10:30:58 -04:00
fixtures Fix spelling of Thoughtleadering 2015-07-02 15:48:47 -04:00
migrations Add line endings to files which are missing them 2015-02-17 13:28:06 -07:00
models Ensure cyclic associations w/ autosave don't cause duplicate errors 2015-07-18 10:30:58 -04:00
schema Ensure cyclic associations w/ autosave don't cause duplicate errors 2015-07-18 10:30:58 -04:00
support Add YAML compatibility for objects from Rails 4.2 2015-03-10 11:56:45 -06:00
.gitignore
config.example.yml remove the last traces of OpenBase from our codebase. [ci skip] 2014-11-07 10:12:01 +01:00
config.rb