Fixed a small typo
Merge pull request #5805 from jvanbaarsen/rails4

Fixed some deprecation warnings