Remove deprecated method in Rails 4

This would break the core build once rails4 branch is merged into master