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

pull/30852/head
Claire 2024-06-27 17:25:27 +02:00 committed by GitHub
parent ff08d99d4d
commit b15a3614dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

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