jnicklas/carrierwave-mongoid — Issue #20: An uploader of an embeds_one fails during file cleanup
Author: rmm5t
Created: 2011-11-17 22:49:38+00:00
State: open

`find_previous_model_for_` blows up with the following:

undefined method `find' for #`

It looks like the cleanup routine was only designed to handle `embeds_many` associations and cannot handle an `embeds_one` association.

What happens in an `embeds_one` scenario is that the previous version of the object tries to find itself using a `find` method that doesn't exist.