jnicklas/carrierwave-mongoid — Issue #22: Issue with embeds_one?
Author: averas
Created: 2011-11-26 08:49:29+00:00
State: open

I have a mounter attached to an embedded model, which works fine when creating a new embedded document. However, when I try to update the document I run into:

undefined method `find' for #

The issue originates in

carrierwave-mongoid (0.1.3) lib/carrierwave/mongoid.rb:46:in `find_previous_model_for_image'

It seems there is only support for embeds_many, not embeds_one, such as in my case. I.e.:

Model->(embeds_one)->Model->mounter

Or am I doing things wrong?

-ra