mongoid-paperclip icon indicating copy to clipboard operation
mongoid-paperclip copied to clipboard

Refresh with embedded models

Open pacovell opened this issue 12 years ago • 2 comments

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.

pacovell avatar Dec 30 '11 15:12 pacovell

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

scottbaggett avatar Apr 17 '12 19:04 scottbaggett

I have the same issue ...

romeo4934 avatar Jun 30 '12 17:06 romeo4934