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.

present? behaves differently for has_many and belongs_to associations

#6382

Reported by 23inhouse · February 6th, 2011 @ 10:36 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. 23inhouse
    23inhouse

    Now i'm pretty sure something is up.


    b = Bar.create
    b.foos.build
    b.foos.first.save
    b.foos.first.present?
    => false # this is still false

    February 6th, 2011 @ 11:03 PM

  2. 23inhouse
    23inhouse

    Forget it something weird was happening in my project, it works in a new rails app.

    February 6th, 2011 @ 11:05 PM

  3. Santiago Pastorino
    Santiago Pastorino
    • State changed from new to invalid
    • Importance changed from to Low

    February 7th, 2011 @ 11:04 AM