debian-mirror-gitlab/app/helpers/json_helper.rb
2023-04-23 21:23:45 +05:30

14 lines
335 B
Ruby

# frozen_string_literal: true
module JsonHelper
# These two JSON helpers are short-form wrappers for the Gitlab::Json
# class, which should be used in place of .to_json calls or calls to
# the JSON class.
def json_generate(...)
Gitlab::Json.generate(...)
end
def json_parse(...)
Gitlab::Json.parse(...)
end
end