From 21b80db0ee29c853ead0fb58cd004c04b6185c51 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Fri, 4 Jun 2021 20:47:10 +0100 Subject: [PATCH] Fix json v1.8.6 common.rb warning Using this patch https://github.com/flori/json/issues/399#issuecomment-734863279 We can upgrade to json v2 but to do that we need to switch from aws-sdk-v1 to aws-sdk-s3 first --- config/initializers/json.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 config/initializers/json.rb diff --git a/config/initializers/json.rb b/config/initializers/json.rb new file mode 100644 index 0000000000..050ef5f364 --- /dev/null +++ b/config/initializers/json.rb @@ -0,0 +1,7 @@ +module JSON + module_function + + def parse(source, opts = {}) + Parser.new(source, **opts).parse + end +end