Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
This test works on Ruby 1.8.7, but blows up on ruby 1.9.2p318
< Some Test Fails >
wrong number of arguments (2 for 0)
< Path Snip >/gems/activesupport-2.3.14/lib/active_support/ordered_hash.rb:16:in `block in to_yaml'
<The offending line>
out.seq(taguri, to_yaml_style) do |seq|
fails because it is called from
safe_request_params = Marshal.load(Marshal.dump(request.parameters))
is effectively
safe_request_params = YAML::load(request.parameters.to_yaml) if request
I have to make a deep copy of the params hash as not to modify the original request object. Bleh audits.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment