New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decoration of namespaced models #587
Comments
I'm having the same issue with the public_activity gem (https://github.com/pokonski/public_activity) |
This might be a separate issue (my issue was related to PaperTrail, not PaperClip), but with the issue I was running into, the solution was to change the decorates line in my VersionDecorator from:
to:
Maybe you just need to add an explicit decorates line somewhere? |
Not sure if this is helpful but I ended up adding: Here's a link to my question on SO: |
Nice. Looks like decorates accepts either a symbol or a class. The symbol is probably just converted to a class... |
Thank you all for your answers. I had to remove Papertrail in the mean time, but i will try to reproduce the problem and the noted fixes. |
Works well with specifying AR class with namespace
UPDATE
|
Going to remove the idea of automatic inference, so closing this issue. |
I am using the Version-model of PaperClip (https://github.com/thoughtbot/paperclip) to show historifed data. Loving the decoration draper-gem I want to use it as well. :-)
Everything worked fine, except till the moment when PaperClip decided to move the Version-Model-Class to a Namespace. Now I have to access PaperClip::Version.
How do I tell Draper this?? He keeps missing the model
The text was updated successfully, but these errors were encountered: