0

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 声明。

4

1 回答 1

0

弃用警告是 attr_encrypted gem 需要修复的问题,但似乎可以通过添加警告中提到的属性调用来解决此问题。

https://github.com/attr-encrypted/attr_encrypted/issues/260

于 2017-12-13T04:34:09.273 回答