PERF: Use Oj for serializing JSON. (#7820)

This commit is contained in:
Bianca Nenciu
2019-06-28 05:16:00 +03:00
committed by Sam
parent 82f2af8a0d
commit 1942ba1d42
2 changed files with 23 additions and 0 deletions

View File

@ -1,4 +1,8 @@
# frozen_string_literal: true
Oj::Rails.set_encoder()
Oj::Rails.set_decoder()
Oj::Rails.optimize()
# Not sure why it's not using this by default!
MultiJson.engine = :oj