File: psych_fix.rb

package info (click to toggle)
ruby-rackup 2.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 356 kB
  • sloc: ruby: 1,709; makefile: 4; javascript: 1
file content (10 lines) | stat: -rw-r--r-- 202 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2022-2023, by Samuel Williams.

unless YAML.respond_to?(:unsafe_load)
  def YAML.unsafe_load(body)
    load(body)
  end
end