Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

rake paperclip:refresh class name error for nested model #39

Closed
bkpavan opened this issue Jun 6, 2009 · 3 comments
Closed

rake paperclip:refresh class name error for nested model #39

bkpavan opened this issue Jun 6, 2009 · 3 comments
Labels

Comments

@bkpavan
Copy link

bkpavan commented Jun 6, 2009

Rake task for nested ActiveRecord model eg. Namespace1::ModelName fails.

Error log:
/paperclip/tasks/paperclip_tasks.rake:5:in const_get' /paperclip/tasks/paperclip_tasks.rake:5:inobtain_class'
/paperclip/tasks/paperclip_tasks.rake:19:in `for_all_attachments'
/paperclip/tasks/paperclip_tasks.rake:55

@bkpavan
Copy link
Author

bkpavan commented Jun 7, 2009

@eagleas
Copy link

eagleas commented Oct 11, 2010

@sikachu
Copy link
Contributor

sikachu commented Jun 23, 2011

This has been fixed by using Paperclip.class_for. Thank you for reporting in.

@sikachu sikachu closed this as completed Jun 23, 2011
geoffharcourt pushed a commit to geoffharcourt/paperclip that referenced this issue Mar 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants