Skip to content

Instantly share code, notes, and snippets.

View gardwired's full-sized avatar

Greg Gard gardwired

View GitHub Profile
@gardwired
gardwired / gist:45d99f4de0e35354105251554f615cf6
Last active December 2, 2018 09:51
temporarily disable delayed_paperclip
# this could be wrapped in a block that temporarily disrupts alias chain
# then sets it back. i post this here just to show the relevant hooks that
# you'd need to touch in whatever solution if you needed it to be more dynamic.
Paperclip::Attachment.class_eval do
alias_method :post_processing, :post_processing_without_delay
alias_method :post_processing=, :post_processing_without_delay=
alias_method :save, :save_without_prepare_enqueueing
end