instance method
_save_fragment
Ruby on Rails 3.1.12
Since v3.0.20 Last seen in v3.2.22.5Signature
_save_fragment(name, options)
No documentation comment.
Parameters
-
namereq -
optionsreq
Source
# File actionpack/lib/action_controller/caching/actions.rb, line 104
def _save_fragment(name, options)
content = response_body
content = content.join if content.is_a?(Array)
if caching_allowed?
write_fragment(name, content, options)
else
content
end
end
Defined in actionpack/lib/action_controller/caching/actions.rb line 104
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Caching::Actions