Adds dirty object-like behavior for Rails model associations.