mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-08-06 11:10:08 +00:00
14 lines
202 B
Ruby
14 lines
202 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Serializers
|
|
class UnsafeJson
|
|
class << self
|
|
def dump(obj)
|
|
obj.to_json(unsafe: true)
|
|
end
|
|
|
|
delegate :load, to: :JSON
|
|
end
|
|
end
|
|
end
|