[Hotfix] Fix rails 4 deprecation warning