Skip to content

Instantly share code, notes, and snippets.

@bradly
Created September 15, 2009 03:26
Show Gist options
  • Save bradly/187091 to your computer and use it in GitHub Desktop.
Save bradly/187091 to your computer and use it in GitHub Desktop.
@@ -221,7 +221,7 @@ module ActiveSupport #:nodoc:
case params.class.to_s
when "Hash"
params.inject({}) do |h,(k,v)|
- h[k.to_s.underscore.tr("-", "_")] = unrename_keys(v)
+ h[k.to_s.tr("-", "_")] = unrename_keys(v)
h
end
when "Array"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment