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

This commit is contained in:
Claire authored and GitHub committed 2024-06-27 15:25:27 +00:00
1 parent ff08d99d4d
commit b15a3614dc
1 file changed
+8
+8
View File
@@ -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