Resovled issue rails#7774

Resolved issue https://github.com/rails/rails/issues/7774