Stub `Vips::Error` when not using libvips (#30857)
parent
ff08d99d4d
commit
b15a3614dc
|
@ -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…
Reference in New Issue