This line shows a deprecation warning in Rails 4