instance method _save_fragment

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.2.22.5

Available in: v3.0.20 v3.1.12 v3.2.22.5

Signature

_save_fragment(name, options)

No documentation comment.

Parameters

name req
options req
Source
# 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

Defined in actionpack/lib/action_controller/caching/actions.rb line 105 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Caching::Actions

Type at least 2 characters to search.

↑↓ navigate · open · esc close