mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Patch paperclip bug
This commit is contained in:
@@ -12,3 +12,13 @@ url_adapters = [
|
||||
Paperclip.io_adapters.registered_handlers.delete_if do |_proc, adapter_class|
|
||||
url_adapters.include? adapter_class.to_s
|
||||
end
|
||||
|
||||
# Patches an error for missing method #silence_stream with Rails 5.0
|
||||
# Can be removed after Paperclip is upgraded to 3.5+
|
||||
module Paperclip
|
||||
class GeometryDetector
|
||||
def silence_stream(_stream, &block)
|
||||
yield
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user