Skip to content

Instantly share code, notes, and snippets.

@ChrisLundquist
Created March 18, 2012 03:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisLundquist/2068313 to your computer and use it in GitHub Desktop.
Save ChrisLundquist/2068313 to your computer and use it in GitHub Desktop.
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