Skip to content

Do not monkey patch the app's YAML#2331

Merged
mshibuya merged 1 commit into
railsadminteam:masterfrom
nwjsmith:better-freedom-patching
Jun 19, 2015
Merged

Do not monkey patch the app's YAML#2331
mshibuya merged 1 commit into
railsadminteam:masterfrom
nwjsmith:better-freedom-patching

Conversation

@nwjsmith
Copy link
Copy Markdown
Contributor

SafeYAML provides a way to avoid monkey-patching the YAML object. This
should be used to avoid overwriting the application's YAML.

This was causing problems with our application, which uses Psych's YAML.safe_load method in ways that are incompatible with SafeYAML's implementation. It's important to note that YAML.safe_load has existed in Ruby's stdlib since 2.1.0.

SafeYAML provides a way to avoid monkey-patching the `YAML` object. This
should be used to avoid overwriting the application's `YAML`.
mshibuya added a commit that referenced this pull request Jun 19, 2015
@mshibuya mshibuya merged commit b5ca6f0 into railsadminteam:master Jun 19, 2015
@mshibuya
Copy link
Copy Markdown
Member

Thanks!

@nwjsmith nwjsmith deleted the better-freedom-patching branch June 19, 2015 13:39
@bf4
Copy link
Copy Markdown
Contributor

bf4 commented May 17, 2016

I guess #2397 got lost?

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.

3 participants