未验证 提交 f430ea90 编写于 作者: S Sebastian Röder 提交者: GitHub

Remove wrong default value for `cache_versioning` in documentation of `cache_version`

`ActiveRecord::Base.cache_versioning` it `true` by default since Rails 5.2 as stated correctly in the documentation for the `ActiveRecord::Base.cache_versioning` class attribute. Remove the wrong and duplicated documentation of the default value for `cache_versioning` from `cache_version`.
上级 756333e6
......@@ -93,7 +93,7 @@ def cache_key
# cache_version, but this method can be overwritten to return something else.
#
# Note, this method will return nil if ActiveRecord::Base.cache_versioning is set to
# +false+ (which it is by default until Rails 6.0).
# +false+.
def cache_version
return unless cache_versioning
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册