[Patch] Some little docu faults
Reported by Kai-Michael Prüß | May 23rd, 2008 @ 05:46 AM
Announcement: http://datamapper.org/articles/d...
- "property :posted_on, Datetime" should be "property :posted_on, DateTime".
- has_many syntax: Announcement "has 0..n", Docu "has n"
- has_and_belongs_to_many: Announcement "has :categories => :categories_posts", Docu "has n, :association => :join_table" (think the n is missing in the announcement? Can't test it now)
Comments and changes to this ticket
-
Alex Coles May 24th, 2008 @ 03:18 AM
- → Title changed from Some little docu faults to [Patch] Some little docu faults
- Patch for first issue listed attached.
- Third issue listed was corrected in commit 5c8b798
-
Dan Kubb May 24th, 2008 @ 11:16 AM
FYI: has 0..n and has n are technically equivalent arguments. I prefer brevity, so I usually use has n, but it still would be useful to outline that you can use the following:
- has 0..1 # between 0 and 1
- has 1 # exactly 1
- has 1..n # greater than or equal to 1
- has n # any number
Also you can use arbitrary ranges like:
- has 1..3 # between 1 and 3
- has 5..n # greater than or equal to 5
-
Adam French June 12th, 2008 @ 12:01 PM
- → State changed from new to resolved
just patched this bad boy up. Thanks for noticing this, Kai-Michael!
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
