Created
August 29, 2015 00:45
-
-
Save danielfone/b9e0d69c867d22aee430 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def post_process(*style_args) #:nodoc: | |
return if @queued_for_write[:original].nil? | |
catch :validation_failed do | |
instance.run_paperclip_callbacks(:post_process) do | |
instance.run_paperclip_callbacks(:"#{name}_post_process") do | |
throw :validation_failed if @options[:check_validity_before_processing] && instance.errors.any? | |
post_process_styles(*style_args) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment