diff --git a/lib/image_processing/mini_magick/deprecated_api.rb b/lib/image_processing/mini_magick/deprecated_api.rb index b0e9b85..9e3641f 100644 --- a/lib/image_processing/mini_magick/deprecated_api.rb +++ b/lib/image_processing/mini_magick/deprecated_api.rb @@ -21,7 +21,7 @@ module ImageProcessing instance_exec(file, *args, block, &body) else Utils.copy_to_tempfile(file) do |tempfile| - send(name, tempfile, *args, &block) + instance_exec(tempfile, *args, block, &body) end end end