method

after

rails latest stable - Class: ActionController::Caching::Actions::ActionCacheFilter

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

after(controller)
public

No documentation available.

# File actionpack/lib/action_controller/caching/actions.rb, line 108
        def after(controller)
          return if controller.rendered_action_cache || !caching_allowed(controller)
          action_content = cache_layout? ? content_for_layout(controller) : controller.response.body
          controller.write_fragment(controller.action_cache_path.path, action_content, @options[:store_options])
        end