Hack up https://github.com/rails/rails/issues/15332