rails3.1でclass_inheritable_accessorがdeprecatedになりました。 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 代わりにclass_attributeを使えとのことなのですが単純置換してはだめな場合がありました。 問題点 配列等に値を追加する際に破壊的メソッドで変更すると問題がでます。(API Docに載ってます) class_inheritable_accessorでは問題ありません。 解決方法 変数名=でコピー