Sha256: 22afdb7ffac85cb84580dadc72f6f2ad552933a33024d32a337ae7a298584240

Contents?: true

Size: 595 Bytes

Versions: 2

Compression:

Stored size: 595 Bytes

Contents

module ActionController
  module Caching
    module Actions
      def _save_fragment_with_options_processing(name, options)
        depends = options[:depends]
        depends = if depends.is_a?(Symbol)
                    send(depends)
                  elsif depends.respond_to?(:call)
                    instance_exec(self, &depends)
                  else
                    depends
                  end
        _save_fragment_without_options_processing(name, options.merge(:depends => depends))
      end

      alias_method_chain :_save_fragment, :options_processing
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tagged-cache-1.1.1 lib/tagged-cache/action_controller.rb
tagged-cache-1.1.0 lib/tagged-cache/action_controller.rb