update two files from Onaracs/encore_rails