aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/autosave_association.rb
diff options
context:
space:
mode:
authorRay Baxter <ray.baxter@gmail.com>2010-11-22 22:11:56 -0800
committerRay Baxter <ray.baxter@gmail.com>2010-11-22 22:11:56 -0800
commitde829f871becc87424d75a5050883a02435c01e4 (patch)
treee495eaff75d72586d86808363f3b24eacff807b9 /activerecord/lib/active_record/autosave_association.rb
parent5debc65c356c619bce20dcc10c0befc7c4204ef5 (diff)
downloadrails-de829f871becc87424d75a5050883a02435c01e4.tar.gz
rails-de829f871becc87424d75a5050883a02435c01e4.tar.bz2
rails-de829f871becc87424d75a5050883a02435c01e4.zip
fix typo
Diffstat (limited to 'activerecord/lib/active_record/autosave_association.rb')
-rw-r--r--activerecord/lib/active_record/autosave_association.rb2
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: