Rails测试正在对已更新为最新版本的gem(attr_encrypted)发出弃用警告。它写着:
DEPRECATION WARNING: <custom_attribute_name> is not an attribute known
to Active Record. This behavior is deprecated and will be removed in
the next version of Rails. If you'd like <custom_attribute_name> to be
managed by Active Record, add attribute :<custom_attribute_name> to
your class.
不确定要求我做什么......必须使用attr_encrypted声明。
答案 0 :(得分:0)
弃用警告是attr_encrypted gem需要修复的内容,但似乎通过添加警告中提到的属性调用来解决此问题。
请参阅https://github.com/attr-encrypted/attr_encrypted/issues/260