Displaying 1 result from an estimated 1 matches for "0809b27".
Did you mean:
0.0927
2008 May 07
1
Assigning to the foreign key on a belongs_to association
...ceived good
reason why it works the way it does. If so, what''s the reason? And if
not, is this a patch that''s worth pushing through the official
channels?
- Matt
diff --git a/activerecord/lib/active_record/associations.rb b/
activerecord/lib/active_record/associations.rb
index 0809b27..7135e50 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -1094,6 +1094,13 @@ module ActiveRecord
instance_variable_set(ivar, new_value.nil? ? nil :
association)
end
+ if association_proxy_class ==...