Skip to content

Add YAML loading options to mirror ActiveRecord behavior#889

Open
mlarraz wants to merge 1 commit intoDynamoid:masterfrom
mlarraz:yaml_safe_load
Open

Add YAML loading options to mirror ActiveRecord behavior#889
mlarraz wants to merge 1 commit intoDynamoid:masterfrom
mlarraz:yaml_safe_load

Conversation

@mlarraz
Copy link

@mlarraz mlarraz commented Mar 21, 2025

Based on discussion in #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).

@andrykonchin
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants