diff options
author | Ray Baxter <ray.baxter@gmail.com> | 2010-11-22 22:11:56 -0800 |
---|---|---|
committer | Ray Baxter <ray.baxter@gmail.com> | 2010-11-22 22:11:56 -0800 |
commit | de829f871becc87424d75a5050883a02435c01e4 (patch) | |
tree | e495eaff75d72586d86808363f3b24eacff807b9 | |
parent | 5debc65c356c619bce20dcc10c0befc7c4204ef5 (diff) | |
download | rails-de829f871becc87424d75a5050883a02435c01e4.tar.gz rails-de829f871becc87424d75a5050883a02435c01e4.tar.bz2 rails-de829f871becc87424d75a5050883a02435c01e4.zip |
fix typo
-rw-r--r-- | activerecord/lib/active_record/autosave_association.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/autosave_association.rb b/activerecord/lib/active_record/autosave_association.rb index cb5bc06580..73ac8e82c6 100644 --- a/activerecord/lib/active_record/autosave_association.rb +++ b/activerecord/lib/active_record/autosave_association.rb @@ -89,7 +89,7 @@ module ActiveRecord # post = Post.create(:title => 'ruby rocks') # post.comments.create(:body => 'hello world') # post.comments[0].body = 'hi everyone' - # post.save # => saves both post and comment, with 'hi everyone' as title + # post.save # => saves both post and comment, with 'hi everyone' as body # # Destroying one of the associated models as part of the parent's save action # is as simple as marking it for destruction: |