Fix polymorphic has_many to HABTM association writer