Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
raybaxter authored and fxn committed Nov 23, 2010
1 parent 30b3a14 commit 9332d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/autosave_association.rb
Expand Up @@ -89,7 +89,7 @@ module ActiveRecord
# post = Post.create(:title => 'ruby rocks') # post = Post.create(:title => 'ruby rocks')
# post.comments.create(:body => 'hello world') # post.comments.create(:body => 'hello world')
# post.comments[0].body = 'hi everyone' # 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 # Destroying one of the associated models as part of the parent's save action
# is as simple as marking it for destruction: # is as simple as marking it for destruction:
Expand Down

0 comments on commit 9332d2e

Please sign in to comment.