diff options
author | Andreas Neuhaus <zargony@zargony.com> | 2008-05-08 00:04:53 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-05-08 00:04:53 -0500 |
commit | bcb090c56b842a76397e0ea32f54c942fd11910e (patch) | |
tree | 2921e7b7b80559f1e20a335da021fdd308993eab /activerecord/test/models | |
parent | 2561732a08ae97fa44706a8eca4db147c4a7c286 (diff) | |
download | rails-bcb090c56b842a76397e0ea32f54c942fd11910e.tar.gz rails-bcb090c56b842a76397e0ea32f54c942fd11910e.tar.bz2 rails-bcb090c56b842a76397e0ea32f54c942fd11910e.zip |
Calling ActiveRecord#inspect on an unloaded association won't wipe the collection [#9 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/developer.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/models/developer.rb b/activerecord/test/models/developer.rb index 192c2cb5ab..f77fd0e96d 100644 --- a/activerecord/test/models/developer.rb +++ b/activerecord/test/models/developer.rb @@ -49,6 +49,10 @@ class Developer < ActiveRecord::Base before_create do |developer| developer.audit_logs.build :message => "Computer created" end + + def log=(message) + audit_logs.build :message => message + end end class AuditLog < ActiveRecord::Base |