Update CollectionAssociation.ids_writer to update the
changed attributes hash of the owner and add an associated test.

add @tenderlove's suggestions

use public_send