@rafaelfranca : This has been done in accordance to this commit https://github.com/rails/rails/commit/5853c64a4ba77134b7a4ff942b7ae711cb7bcc46
We are again doing a conditional check on key when it is not needed.