diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-01-22 17:35:19 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-01-22 17:35:19 +0100 |
commit | d3211d76ce666c9fb0a3c69262e4efdb8eee8832 (patch) | |
tree | d42b5e6cf36043d49ced3622019306a63e74ded5 /activemodel/lib/active_model/serializers | |
parent | 3d4eaf6dad8186b531d99c4593c8ba626c9ca8cd (diff) | |
download | rails-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