updates has many conditions syntax to works with rails 4