DEPRECATION`RSolr.escape`已弃用(且不正确)。请改用`Rsolr.solr_escape`

时间:2016-03-15 12:36:39

标签: ruby-on-rails-3.2 ruby-on-rails-3.1 ruby-1.9.3 sunspot-rails sunspot-solr

项目环境

  • Ruby 1.9.3p392
  • Rails 3.1.12
  • gem' sunspot_rails' ,' 2.0.0'
  • gem' sunspot_solr' ,' 2.0.0'

    [DEPRECATION] RSolr.escape已弃用(且不正确)。请改用Rsolr.solr_escape

如何修复此警告,任何人都有同样的问题?并找到解决方案?

1 个答案:

答案 0 :(得分:0)

你可以删除这一行:

rsolr-1.0.13/lib/rsolr/char.rb: warn "[DEPRECATION] RSolr.escape is deprecated (and incorrect).  Use RSolr.solr_escape instead."