Module: YAML

Defined in:
lib/delayed/syck_ext.rb

Instance Method Summary collapse

Instance Method Details

#load_dj(yaml) ⇒ Object



37
38
39
40
41
# File 'lib/delayed/syck_ext.rb', line 37

def load_dj(yaml)
  # See https://github.com/dtao/safe_yaml
  # When the method is there, we need to load our YAML like this...
  respond_to?(:unsafe_load) ? load(yaml, :safe => false) : load(yaml)
end