You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before Rails 8.0.1, inherited singleton methods were included in singleton_methods(false), but starting from Rails 8.0.1, inherited singleton methods are no longer included in singleton_methods(false).
As a result, init_hash is always set to true, causing only one attribute in the child class to have its default value set.
Steps to reproduce
Expected behavior
Actual behavior
nil
System configuration
Rails version: 8.0.1
Ruby version: 3.3.5
DefaultValueFor version: 4.1.0
Additional information
It seems to be caused by the modification of
class_attribute
method in Rails 8.0.1.rails/rails#53640
The text was updated successfully, but these errors were encountered: