We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46c42a2 commit d601d9dCopy full SHA for d601d9d
activesupport/lib/active_support/cache.rb
@@ -439,9 +439,9 @@ def mute
439
#
440
# ==== Dynamic Options
441
442
- # In some cases it may be necessary to to dynamically compute options based
443
- # on the cached value. For this purpose, a ActiveSupport::Cache::WriteOptions
444
- # instance is passed as a second argument to the block
+ # In some cases it may be necessary to dynamically compute options based
+ # on the cached value. To support this, an ActiveSupport::Cache::WriteOptions
+ # instance is passed as the second argument to the block. For example:
445
446
# cache.fetch("authentication-token:#{user.id}") do |key, options|
447
# token = authenticate_to_service
0 commit comments