Ruby on Rails latest stable (v5.2.3) - 0 notes - Class: Integration
cache_version() public

Returns a cache version that can be used together with the cache key to form a recyclable caching scheme. By default, the #updated_at column is used for the 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).

Show source
Register or log in to add new notes.