Updates so tests pass with Rails 4.1.