mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
49e943c4f0ac3459bd53023167aaa08fc8e46733
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>
Description
No description provided
Languages
Ruby
97.9%
CSS
1.5%
HTML
0.5%