rails/rails — pull request #7658 by steveklabnik (2012-09-16 11:27:14+00:00)
Title: Save join data with has_many :through.

Fixes #5057.

If you have :conditions on a has_many :through, it does not
save the data. This patch fixes that by generating the
correct SQL.

This is based on work done by @clarkgr on #5057.

I don't have a test written, because I'm an AR noob, but you have to start somewhere...

All the existing tests pass.