rails/rails — pull request #15909 by yuki24 (2014-06-25 02:21:10+00:00)
Title: Backport of #15764 and #15902 to 4-1-stable

Backport of #15764 and #15902 to _4-1-stable_ branch. That was a Ruby breaking bug so It should be backported.