Update for Rails 4.

Change-Id: I179a71e3bb7703ad3b4d8d7a4935e3bbbb2c1ef8