-
Notifications
You must be signed in to change notification settings - Fork 246
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
Delayed Paperclip does not generate all styles in latest version of Paperclip (v 3.0.4) #67
Comments
You sir, are very much appreciated |
Thanks mate, wrapped it in my recent commits to get S3 working: So that now works for 2.7 -> 3.1.2 of paperclip and S3 uploads. |
Nice. Thanks for issuing the pull request. |
I am experiencing this same issue even with the following gems: From Gemfile: From bundle show:
My environment is Rails 3.1.6 Is it my Ruby verison? Too old perhaps? My photo model contains: Paperclip.interpolates :updated_at_timestamp do |attachment, style| #process_in_background :file Note that process_in_background is commented out to disable delayed_paperclip. (It works without it but the delays are unacceptable now) Please advise. Thanks, |
Fix undefined method `[]' for nil:NilClass with Paperclip 3.5.2
Currently, due to API changes in Paperclip from v3.0 onwards, the
reprocess!
method that is called fromprocess_delayed!
does not reprocess all of the styles since thepost_processing
instance attribute on the attachment is set to false after being created. When reassigned/saved this is not updated to true again.This is easily overcome by updating the relevant method as follows:
Happy to provide a pull request if appropriate.
The text was updated successfully, but these errors were encountered: