delayed_paperclip
delayed_paperclip copied to clipboard
Process your Paperclip attachments in the background with delayed_job or Resque.
Using the following values for that attachment: ... :path => "/:view_key/:style/:hash", :use_timestamp => false, :hash_secret => "hash.secret", :hash_data => ":class/:attachment/:id/:style/:updated_at" ... The process works, and the styles are generated on...
Updated with my previous fixes to ensure it works on S3 too. This is now working with paperclip 3.1.2, updated tests accordingly and gemfiles.
... tested across rails versions and added Rails 3.2 to test suite. Paperclip version bumped to 2.7. Main issue : - attachment_updated_at was not being updated, new Paperclip (> 2.4.5)...
the 'most_appropriate_url' has being removed from the attachment and now we are back using simple 'url' calls and that calls most_appropriate_url from url_generator. Regards, Marco Aguilar
Here is the full stack trace from `Sidekiq` ``` ruby Athlete Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."type" IN ('Athlete') AND "users"."id" = $1 LIMIT 1 [["id", 58]] 2013-08-17T02:34:57Z...
delayed_paperclip (2.6.1) lib/delayed_paperclip/attachment.rb:16:in `delayed_options' delayed_paperclip (2.6.1) lib/delayed_paperclip/attachment.rb:32:in`delay_processing?' delayed_paperclip (2.6.1) lib/delayed_paperclip/attachment.rb:21:in `post_processing_with_delay' paperclip (3.5.2) lib/paperclip/attachment.rb:112:in`assign' paperclip (3.5.2) lib/paperclip/has_attached_file.rb:65:in `block in define_setter' activerecord (3.2.13) lib/active_record/attribute_assignment.rb:85:in`block in assign_attributes' activerecord (3.2.13) lib/active_record/attribute_assignment.rb:78:in `each' activerecord...
I'm using delayed_paperclip with S3 and resque, and my attachment model looks like this has_attached_file :media_file, styles: { thumb: '160x', small: '320x', medium: ['640x480', auto_orient: false], large: '1024x', default_url: "/logos/:style/footle.png"...
I faced a problem using delayed_paperclip gem. I had already set up according to the direction on manual. When I insert the code "process_in_background" on the relevant model, custom styles...
trying to add delayed_paperclip to existing functional paperclip installation. i use resque for background tasks and deploy on heroku, so am using foreman locally and a procfile to start-up processes,...
Has anyone handled this issue? I have a file already at S3. I want to attach it to a paperclip model but I want the download to happen in the...