method
_save_fragment
v3.0.9 -
Show latest stable
- Class:
ActionController::Caching::Actions
_save_fragment(name, options)public
No documentation available.
# File actionpack/lib/action_controller/caching/actions.rb, line 105
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