aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/serializers
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2015-01-22 17:35:19 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2015-01-22 17:35:19 +0100
commitd3211d76ce666c9fb0a3c69262e4efdb8eee8832 (patch)
treed42b5e6cf36043d49ced3622019306a63e74ded5 /activemodel/lib/active_model/serializers
parent3d4eaf6dad8186b531d99c4593c8ba626c9ca8cd (diff)
downloadrails-d3211d76ce666c9fb0a3c69262e4efdb8eee8832.tar.gz
rails-d3211d76ce666c9fb0a3c69262e4efdb8eee8832.tar.bz2
rails-d3211d76ce666c9fb0a3c69262e4efdb8eee8832.zip
Speed up `normalize_keys` by removing dup step.
Previously env was duplicated and then had it's keys mutated. This iterates through the hash twice. Using `transform_keys`, duplication and key mutation is a single iteration. `convert_symbols` was renamed to `http_header_format`.
Diffstat (limited to 'activemodel/lib/active_model/serializers')
0 files changed, 0 insertions, 0 deletions