Skip to content

Commit

Permalink
syck has nothing to do with the pych 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
willnet committed Dec 27, 2021
1 parent 6861d2b commit 562a460
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/delayed/syck_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ module YAML
def load_dj(yaml)
# See https://github.com/dtao/safe_yaml
# When the module is there, we need to load our YAML like this...
if Object.const_defined?(:SafeYAML)
load(yaml, :safe => false)
elsif respond_to?(:unsafe_load) # psych >= 3.3.2
unsafe_load(yaml)
end
respond_to?(:unsafe_load) ? load(yaml, :safe => false) : load(yaml)
end
end

0 comments on commit 562a460

Please sign in to comment.