Convert to Array for Array#map!
Load earlier to avoid invalid statement

This is Rails 4.0.0's bug:

- https://github.com/rails/rails/commit/968c581ea34b5236af14805e6a77913b1cb36238
- https://github.com/rails/rails/issues/13648
Add \n at the last of file
Don't query the same query