mirror of https://github.com/rails/rails
a0993f81d0
Ref: https://github.com/mastodon/mastodon/issues/27622 If applications don't eager load and use the old Rails 6.1 Marshal format, they can load Active Record instances from caches without calling `init_internals` hence attribute methods and aliases are nnot defined yet, leading to `NoMethodError` Initially I was hopping to fully get rid of the `define_attribute_methods` call in `init_internals` in favor of this new method missing, as it would remove work from the happy path, unfortunately that isn't possible because if a generated method overrides a default method inherited from object, `method_missing` won't be called. e.g. `Kernel#format` We may want to get rid of this extra code once we remove support for the 6.1 marshal format. |
||
---|---|---|
.. | ||
marshal_compatibility_fixtures | ||
stubs | ||
yaml_compatibility_fixtures | ||
adapter_helper.rb | ||
async_helper.rb | ||
config.rb | ||
connection.rb | ||
connection_helper.rb | ||
ddl_helper.rb | ||
fake_adapter.rb | ||
load_schema_helper.rb | ||
schema_dumping_helper.rb | ||
tools.rb |