fix has_many assoc method definition