Fix remaining Rails 4 deprecation warnings

All tests are now passing on Rails 3.0 through 4.0.0.beta1 without
deprecation warnings.