Are you using Rails 3? the deprecation warning happens in Rails 4