Skip to content
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.

Dynamic only_process support #82

Merged
merged 1 commit into from
May 16, 2014

Conversation

sbkok
Copy link

@sbkok sbkok commented Apr 4, 2014

Enables lambda support for the only_process option to determine which
styles need to be processed delayed dynamically. This is supported in the generic paperclip gem, adding it to the delayed_paperclip gem allows you to process certain styles on attachments that support multiple file types as well.

process_in_background :avatar, :only_process => lambda { |a| a.instance.small_supported? ? [:small, :large] : [:large] }

Enables lambda support for the only_process option to determine which
styles need to be processed delayed dynamically. See the README file
for an example.
@ScotterC
Copy link
Collaborator

This is fantastic. Thanks!

ScotterC added a commit that referenced this pull request May 16, 2014
@ScotterC ScotterC merged commit f6cfa4f into jrgifford:master May 16, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants