-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
undefined method `attachment_definitions' for #<Class:0x007fa004a0c908> #1674
Comments
Okay, I think I included the wrong branch. I solved it. |
wrong branch of paperclip? which one worked? |
I am seeing the same problem when I try to run |
I get the same problem with version 3.5.0 of paperclip, it works for version 3.4.0 of paperclip. |
This is due to change in thoughtbot/paperclip@dad6086. |
Same problem here with version 3.5.0, works with 3.4.2 |
|
It discovered attachment_definitions was also used in the gem https://github.com/saepia/paperclip-strip-strange-characters, which broke when upgrading to 3.5.0: |
I am using the master version of paperclip and still having this issue... |
I'm using paperclip 4.2.1 and still getting this error. |
Can you paste full stack trace? |
|
Found the cause. |
railsadminteam#1674 This fix in the above PR doesn't work though. Not sure what using "try" would solve. This actually checks to see if the object resonds to the method that is missing in some versions of paperclip.
I have everything running on rails 4, but I'm having this issue with paperclip, it seems broken in rails admin rails-4 branch, wondering if anyone else knows what's going on or has seen this. Any paperclip model throws :
undefined method `attachment_definitions' for #Class:0x007fa004a0c908
This is with the latest version 3.4.2 of paperclip.
Thanks
The text was updated successfully, but these errors were encountered: