meskyanichi/mongoid-paperclip — Issue #22: Refresh with embedded models
Author: pacovell
Created: 2011-12-30 15:30:17+00:00
State: open

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.