Sha256: b0984c5cf2c2dc09bb027811d2b76f23eb09027d8778b53a1c086f287f83d2a7
Contents?: true
Size: 448 Bytes
Versions: 15
Compression:
Stored size: 448 Bytes
Contents
module ActionController #:nodoc: module Caching module SqlCache def self.included(base) #:nodoc: if defined?(ActiveRecord) && ActiveRecord::Base.respond_to?(:cache) base.alias_method_chain :perform_action, :caching end end protected def perform_action_with_caching ActiveRecord::Base.cache do perform_action_without_caching end end end end end
Version data entries
15 entries across 14 versions & 6 rubygems