David
Not a member
David's latest activity
Monday, July 26 2010
4971
nested includes in AR causes duplicates in to_json / to_xml
was updated
in Ruby on Rails
-
David commented at 6:27 PMYes it works now! With :uniq => true and your changes i'm getting the desired results, thanks!
Friday, July 16 2010
4971
nested includes in AR causes duplicates in to_json / to_xml
was updated
in Ruby on Rails
-
David commented at 2:17 PMHey Neeraj, I still get 3 records in the to_xml / to_json output. The count for count2 = p.tasks.size is 1 though.
Friday, June 25 2010
4971
nested includes in AR causes duplicates in to_json / to_xml
was updated
in Ruby on Rails
-
-
David created the ticket at 5:15 PMIn Rails edge using #to_xml or #to_json on an ActiveRecord::Relation with includes causes duplicate entries.
The model is: Projects has_many Tasks habtm Users
E...
Thursday, May 13 2010
-
David commented at 5:32 PMAs Scoot Rushforth described it, the patch doesn't solve the problem. The ActiveRecord::RecordNotFound exception should be raised only if the nested record is n...