dynamoid icon indicating copy to clipboard operation
dynamoid copied to clipboard

Add YAML loading options to mirror ActiveRecord behavior

Open mlarraz opened this issue 11 months ago • 1 comments

Based on discussion in https://github.com/Dynamoid/dynamoid/pull/757, adds two new options that allow YAML safe loading behavior to be customized or disabled.

Because there is a lot of different behavior between versions of the Pysch gem, we should directly check what methods are available instead of the Ruby version (particularly because newer Ruby versions can still run older versions of Pysch).

mlarraz avatar Mar 21 '25 17:03 mlarraz

Thank you! Looks good. Could you add specs for the new config options?

It seems to me the proper place for new tests is https://github.com/Dynamoid/dynamoid/blob/master/spec/dynamoid/dumping_spec.rb.

andrykonchin avatar Mar 22 '25 11:03 andrykonchin