Rails 测试在 attr_encrypted 上抛出弃用警告
Rails test throwing Deprecation Warning over attr_encrypted
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 声明。
弃用警告是 attr_encrypted gem 需要解决的问题,但似乎可以通过添加警告中提到的属性调用来解决。
见https://github.com/attr-encrypted/attr_encrypted/issues/260
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 声明。
弃用警告是 attr_encrypted gem 需要解决的问题,但似乎可以通过添加警告中提到的属性调用来解决。
见https://github.com/attr-encrypted/attr_encrypted/issues/260