Action caching for Action Pack v1.1.0 Release Notes

Release Date: 2013-11-01 // over 10 years ago
    • Allow to use non-proc object in cache_path option. You can pass an object that responds to a call method.

      Example:

      class CachePath
        def call(controller)
          controller.id
        end
      end
      
      class TestController < ApplicationController
        caches_action :index, :cache_path => CachePath.new
        def index; end
      end
      

      Piotr Niełacny