Permalink
Browse files

Fix a few typos in 'Associations' section of README.rdoc

  • Loading branch information...
1 parent e3b938c commit bfb52cec0d8aebdf34f80800b96a44e0f99781ff lachlan committed Aug 9, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.rdoc
View
@@ -518,7 +518,7 @@ many_to_one creates a getter and setter for each model object:
post.author = Author[:name => 'Sharon']
post.author
-one_to_many and many_to_many create a getter method, a method for adding an object to the association, a method for removing an object from the association, and a method for removing all associated objected from the association:
+one_to_many and many_to_many create a getter method, a method for adding an object to the association, a method for removing an object from the association, and a method for removing all associated objects from the association:
class Post < Sequel::Model
one_to_many :comments
@@ -539,10 +539,10 @@ one_to_many and many_to_many create a getter method, a method for adding an obje
All associations add a dataset method that can be used to further filter or reorder the returned objects, or modify all of them:
# Delete all of this post's comments from the database
- Post.comments_dataset.destroy
+ post.comments_dataset.destroy
# Return all tags related to this post with no subscribers, ordered by the tag's name
- Post.tags_dataset.filter(:subscribers=>0).order(:name).all
+ post.tags_dataset.filter(:subscribers=>0).order(:name).all
=== Eager Loading

0 comments on commit bfb52ce

Please sign in to comment.