This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |