rails--rails/activerecord/lib/active_record/associations
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
..
association_collection.rb Callbacks, DeprecatedCallbacks = NewCallbacks, Callbacks 2009-10-12 22:15:43 -05:00
association_proxy.rb Fix instance_eval calls to association proxies 2009-12-02 12:47:09 -08:00
belongs_to_association.rb
belongs_to_polymorphic_association.rb
has_and_belongs_to_many_association.rb Revert "Revert "Assert primary key does not exist in habtm when the association is defined, instead of doing that everytime a record is inserted."" 2009-11-23 10:42:32 -08:00
has_many_association.rb Revert "Split arel_table into method to get a relation and another to memoize the default relation." 2009-11-13 15:30:51 -08:00
has_many_through_association.rb
has_one_association.rb Make has_one with :conditions hash scope build or creation of the associated object with those conditions 2009-09-28 14:50:33 +13:00
has_one_through_association.rb
through_association_scope.rb