Rails 4: deprecated method removed