mrrooijen / mongoid-paperclip

Mongoid::Paperclip enables you to use Paperclip with the Mongoid ODM for MongoDB.
MIT License
344 stars 119 forks source link

Refresh with embedded models #22

Open pacovell opened 12 years ago

pacovell commented 12 years ago

The paperclip refresh &c commands are broken with embedded models, since it attempts to load from the top level:

$ rake RAILS_ENV=staging paperclip:refresh:missing_styles
Regenerating Image -> photo -> [:background, :thumb]
rake aborted!
Access to the collection for Image is not allowed since it is an embedded document, please access a collection from the root document.

Any ideas on the most efficient way to solve this? I'm happy to make a stab at it.

scottbaggett commented 12 years ago

I also am running in to this issue. Is there a solution?

romeo4934 commented 12 years ago

I have the same issue ...