This project is archived and is in readonly mode.
ActiveRecord AssociationCollection build should set belongs_to association before calling block
-
Neeraj Singh
Can you add a failing test and also provide patch as per the guidelines. This looks interesting.
-
Santiago Pastorino
Follow this http://rails.lighthouseapp.com/projects/8994/sending-patches to provide a test case and a patch ;)
-
Neeraj Singh
- State changed from new to invalid
- Importance changed from to Low
Even with existing code you can do
author.autobiographies.build do |book| book.title = "#{book.author.name}'s autobiography" endand it will work.
-
Rohit Arondekar
- Tag changed from activerecord associations, activerecord, associations, build to activerecord, associations, build