Skip to content

Add YAML loading options to mirror ActiveRecord behavior #889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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