rails/activerecord/test
Rafael Mendonça França d406014b03
Always store errors details information with symbols
When the association is autosaved we were storing the details with
string keys. This was creating inconsistency with other details that are
added using the `Errors#add` method. It was also inconsistent with the
`Errors#messages` storage.

To fix this inconsistency we are always storing with symbols. This will
cause a small breaking change because in those cases the details could
be accessed as strings keys but now it can not.

The reason that we chose to do this breaking change is because `#details`
should be considered a low level object like `#messages` is.

Fix #26499.

[Rafael Mendonça França + Marcus Vieira]
2016-09-19 19:57:03 -03:00
..
active_record/connection_adapters introduce conn.data_source_exists? and conn.data_sources. 2015-09-22 19:48:44 +02:00
assets
cases Always store errors details information with symbols 2016-09-19 19:57:03 -03:00
fixtures Merge pull request #26466 from y-yagi/remove_duplicated_fixture_set_names 2016-09-13 13:21:28 -04:00
migrations modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
models Add tests for ActiveRecord::Enum#enum when suffix specified 2016-09-12 08:52:02 +09:00
schema Add tests for ActiveRecord::Enum#enum when suffix specified 2016-09-12 08:52:02 +09:00
support applies new string literal convention in activerecord/test 2016-08-06 18:26:53 +02:00
.gitignore
config.example.yml Remove legacy mysql adapter 2015-12-17 15:54:57 +00:00
config.rb