Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Make sure associated has_many/habtm objects get saved even when :validate => false is used.

#486

Apparently adding the :validate => false to has_many and habtm associations breaks saving of associations. Ofcourse that shouldn't happen. In attachment a patch for this.

Reported by Jan De Poorter · June 25th, 2008 @ 11:46 AM

State: resolved
Milestone: 2.1.1
Assigned to: Pratik Pratik
Importance: none

Activity

  1. wildchild
    wildchild

    +1 works like a charm

    June 25th, 2008 @ 11:59 AM

  2. Jean-Baptiste Escoyez
    Jean-Baptiste Escoyez

    +1 Great job. I can use ':validate => false' in my app now

    June 26th, 2008 @ 04:44 PM

  3. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to open
    • Milestone set to 2.1.1
    • Assigned user set to Pratik

    June 26th, 2008 @ 09:34 PM

  4. Repository
    Repository
    • State changed from open to resolved

    (from [b2b761166d28c1aba9165da76fba28027171fd2d]) Make sure associated has_many/habtm objects get saved even when :validate => false is used. [#486 state:resolved]

    Signed-off-by: Pratik Naik

    http://github.com/rails/rails/co...

    June 27th, 2008 @ 03:07 AM

  5. Repository
    Repository

    (from [be099c07ab0411c6295458960f5f2d4d6a4dc8ac]) Make sure associated has_many/habtm objects get saved even when :validate => false is used. [#486 state:resolved]

    Signed-off-by: Pratik Naik

    http://github.com/rails/rails/co...

    June 27th, 2008 @ 03:08 AM