Fixing deprecated Rails 4.0.1 issue.