-
Notifications
You must be signed in to change notification settings - Fork 901
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
Support for Psych version 4 #1335
Comments
Hi @niciliketo, thanks for share the issue. I could reproduce and seems like could be an easy fix. In ::YAML.load string by ::YAML.respond_to?(:unsafe_load) ? ::YAML.unsafe_load(string) : ::YAML.load(string) It works. I just used the same code that rails team used here: rails/rails@255b5ff I would like to see @jaredbeck thoughts. |
Sounds good, thanks @gurgelrenan |
t27duck
added a commit
to t27duck/paper_trail
that referenced
this issue
Sep 5, 2021
Fixes paper-trail-gem#1335 Psych's `.load` method uses `.safe_load` by default which is not compatible with papertail needs to load. This implements the suggested fix in the issue which is a similar fix that Rails uses throughout its codebase when it needs to load YAML content.
t27duck
added a commit
to t27duck/paper_trail
that referenced
this issue
Sep 5, 2021
Fixes paper-trail-gem#1335 Psych's `.load` method uses `.safe_load` by default which is not compatible with papertail needs to load. This implements the suggested fix in the issue which is a similar fix that Rails uses throughout its codebase when it needs to load YAML content.
t27duck
added a commit
to t27duck/paper_trail
that referenced
this issue
Sep 15, 2021
Fixes paper-trail-gem#1335 Psych's `.load` method uses `.safe_load` by default which is not compatible with papertail needs to load. This implements the suggested fix in the issue which is a similar fix that Rails uses throughout its codebase when it needs to load YAML content.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think Psych 4 uses
safe_load
by defaultruby/psych#487
This seems to cause a problem when retrieving previous versions with papertrail
Check the following boxes:
paper_trail
gemDue to limited volunteers, we cannot answer usage questions. Please ask such
questions on StackOverflow.
Bug reports must use the following template:
The text was updated successfully, but these errors were encountered: