fix join in ar 4
fix join for ar 3.0 and 4.1
fix integration/active_record4/association_spec