Fix setting an attachment attribute on model.
Update the documentation.