如何摆脱这个插件的class_inheritable_attribute弃用警告?

时间:2011-10-19 22:09:14

标签: ruby-on-rails plugins deprecated

我正在收到我正在使用的插件的警告:

 DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from has_private_messages at /vendor/plugins/simple-private-messages/lib/has_private_messages_extensions.rb:17)

我在https://github.com/jongilbraith/simple-private-messages创建了一个问题,但最近的活动并不多。

我不熟悉class_inheritable_attribute ...不知道如何自己修补。任何提示?

1 个答案:

答案 0 :(得分:0)

在GitHub上插入插件并找到对class_inheritable_attribute的调用并将其更改为class_attribute。从vendor/plugins目录中删除旧插件并添加新插件。这将删除弃用警告。