1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test
Ryuta Kamizono 06d04bc237 Invoke load_schema in _default_attributes
Currently `_default_attributes` doesn't work unless `load_schema` is
called before.

The `MissingAttributeError` is caused by `reload_schema_from_cache` is
invoked by `serialize`.

I added `load_schema` in `_default_attributes` to `_default_attributes`
works without any dependency like `attribute_types` etc.

Closes #31905.
2018-02-06 22:32:03 +09:00
..
active_record/connection_adapters Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
assets Use YAML to serialize schema cache 2016-11-27 22:09:58 -05:00
cases Invoke load_schema in _default_attributes 2018-02-06 22:32:03 +09:00
fixtures Fix expanding an array of composed_of objects which have multiple mappings 2018-01-29 09:24:14 +09:00
migrations Unify the internal source control .keep file name 2017-08-24 13:40:26 +09:00
models Remove unused/missing to_money converter in the test/doc 2018-01-29 16:45:29 +09:00
schema Don't update counter cache when through record was not destroyed 2018-01-14 20:46:19 +00:00
support Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
.gitignore
config.example.yml Fix tests for prepared_statements: false and queries hitting #select_all 2016-11-19 21:52:52 +05:30
config.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00