Mat Brown 49e943c4f0 Fix instance_eval calls to association proxies
In the current stable, ActiveRecord::Associations::AssociationProxy#method_missing calls yield() if a block is given, causing the block to always be evaluated in its calling context. However, in the case of instance_eval, correct behavior requires that the block be passed directly to the @target, rather than being evaluated inside a different block. Incidentally, this also simplifies the code slightly.

[#3412 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-12-02 12:47:09 -08:00
2009-11-13 10:31:05 -08:00
2009-11-10 17:19:39 -08:00
2008-06-22 10:38:25 -07:00
2009-12-02 11:35:47 -08:00
2009-12-02 11:35:48 -08:00
2009-12-02 11:35:47 -08:00
2009-12-02 11:35:47 -08:00
2009-12-02 11:35:47 -08:00
Description
No description provided
85 MiB
Languages
Ruby 97.9%
CSS 1.5%
HTML 0.5%