#304 ✓resolved
Kai-Michael Prüß

[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

    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 (dkubb)

    Dan Kubb (dkubb) 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

    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 Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket