安装“rails3_acts_as_paranoid”后,我得到了这样的DEPRECATION WARNING。由于此警告日志(大量日志!)而发生OutOfMemory错误。
DEPRECATION WARNING: primary_key_name is deprecated and will be removed from Rails 3.2 (use foreign_key instead). (called from block in _app_views_xxx_index_html_erb__2332243026978558603_2180692200 at /Users/xxx/xxx/xxx/index.html.erb:11)
index.html.erb:11 has this code
<%= hoge.fuga.id %>
有没有人有任何想法?
P.S。
Rails Version = 3.1.3
rails3_acts_as_paranoid版本= 0.1.3
rails3_acts_as_paranoid references(您可以看到“primary_key_name”可能已被弃用..) https://github.com/goncalossilva/rails3_acts_as_paranoid/blob/master/lib/rails3_acts_as_paranoid.rb
我可以使用“rails console”在没有上述警告的情况下执行find方法。 (.html.erb会错的..?)