Welcome to mirror list, hosted at ThFree Co, Russian Federation.

json_helper.rb « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2a1a6272cc901fde93940755a31f5930f7e64f52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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