Replace map.flatten with flat_map in actionpack
Replace map.flatten with flat_map in activerecord
Replace map.flatten with flat_map in railties
Merge pull request #14262 from sferik/flat_map

Replace additional instances of map.flatten with flat_map