Stub `Vips::Error` when not using libvips (#30857)

pull/30852/head
Claire 6 months ago committed by GitHub
parent ff08d99d4d
commit b15a3614dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -25,3 +25,11 @@ if Rails.configuration.x.use_vips
Vips.block_untrusted(true)
end
# In some places of the code, we rescue this exception, but we don't always
# load libvips, so it may be an undefined constant:
unless defined?(Vips)
module Vips
class Error < StandardError; end
end
end

Loading…
Cancel
Save