Removing Warning deprecation in Rails 4