instance method
_write_fragment_cache
Ruby on Rails 2.9.1
Since v2.6.4 Last seen in v2.14.1 PrivateSignature
_write_fragment_cache(key, options = nil)
No documentation comment.
Parameters
-
keyreq -
optionsopt = nil
Source
# File lib/jbuilder/jbuilder_template.rb, line 142
def _write_fragment_cache(key, options = nil)
@context.controller.instrument_fragment_cache :write_fragment, key do
yield.tap do |value|
::Rails.cache.write(key, value, options)
end
end
Defined in lib/jbuilder/jbuilder_template.rb line 142
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in JbuilderTemplate