Fix Rails 4 unknown key :condition in has_many relation definition