Files
rails/activerecord/test/cases
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-08-10 18:07:33 -03:00
2008-11-24 11:14:24 -06:00
2009-07-20 16:53:48 -03:00
2008-07-31 16:36:23 -05:00
2009-08-08 19:14:35 -03:00
2008-03-31 03:57:25 +00:00
2008-07-31 16:36:23 -05:00
2009-11-09 17:01:57 -08:00
2008-07-31 16:36:23 -05:00