2011-10-19 6 views
0

このプラグインのclass_inheritable_attribute廃止警告を取り除く方法を教えてください。私は私が使用しているプラ​​グインのために、この警告を取得してい

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に慣れていません...自分自身を修正する方法がわかりません。何かヒント?

答えて

0

GitHubでプラグインをフォークし、class_inheritable_attributeのコールを見つけてclass_attributeに変更します。 vendor/pluginsディレクトリから古いプラグインを削除し、新しいプラグインを追加します。これにより、廃止予定の警告が削除されます。

関連する問題