This project is archived and is in readonly mode.
present? behaves differently for has_many and belongs_to associations
Reported by 23inhouse | February 6th, 2011 @ 10:36 PM
Comments and changes to this ticket
-
23inhouse February 6th, 2011 @ 11:03 PM
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 -
23inhouse February 6th, 2011 @ 11:05 PM
Forget it something weird was happening in my project, it works in a new rails app.
-
Santiago Pastorino February 7th, 2011 @ 11:04 AM
- State changed from new to invalid
- Importance changed from to Low
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>