This project is archived and is in readonly mode.

#986 ✓resolved
Hongli Lai

Add special AssociationReflection methods for creating association objects

Reported by Hongli Lai | September 6th, 2008 @ 06:45 PM

This patch adds special AssociationReflection methods for creating association objects, and modifies the code base to use those methods instead of creating association objects directly. This allows plugins to hook into association object creation behavior.

For example,

@reflection.klass.new(...)

now becomes

@reflection.build_association(...)

Is this patch simple enough to make it into 2.2?

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages