app/utils/hash_utils.rb
# rename keys in given hash (returns a copy) using the renames old_key => new_key mappings
rename keys in given hash (returns a copy) using the renames old_key => new_key mappings
rename keys in given hash ( returns a copy ) using the renames old_key = > new_key mappings
def rename_keys(renames, hash)
    map_keys(hash) { |old_key|
      renames[old_key] || old_key
    }
  end
def rename_keys ( renames , hash ) map_keys ( hash ) { | old_key | renames [ old_key ] || old_key } end
rename keys in given hash (returns a copy) using the renames old_key => new_key mappings
rename keys in given hash ( returns a copy ) using the renames old_key = > new_key mappings
renames
hash