debian-mirror-gitlab/config/initializers/multi_json.rb

11 lines
332 B
Ruby
Raw Normal View History

2020-07-28 23:09:34 +05:30
# frozen_string_literal: true
# Explicitly set the JSON adapter used by MultiJson
2022-11-25 23:54:43 +05:30
#
# This changes the default JSON adapter used by any gem dependencies
# we have that rely on MultiJson for their JSON handling. We set this
# to `oj` for a universal performance improvement in JSON handling
# across those gems.
2022-06-21 17:19:12 +05:30
MultiJson.use(:oj)