Skip to content
  • Yves Senn's avatar
    d5580b91
    Allow included modules to override association methods. · d5580b91
    Yves Senn authored
    Closes #16684.
    
    This is achieved by always generating `GeneratedAssociationMethods` when
    `ActiveRecord::Base` is subclassed. When some of the included modules
    of `ActiveRecord::Base` were reordered this behavior was broken as
    `Core#initialize_generated_modules` was no longer called. Meaning that
    the module was generated on first access.
    d5580b91
    Allow included modules to override association methods.
    Yves Senn authored
    Closes #16684.
    
    This is achieved by always generating `GeneratedAssociationMethods` when
    `ActiveRecord::Base` is subclassed. When some of the included modules
    of `ActiveRecord::Base` were reordered this behavior was broken as
    `Core#initialize_generated_modules` was no longer called. Meaning that
    the module was generated on first access.
Loading