Module: ActionController::Caching::SqlCache

Defined in:
lib/action_controller/caching/sql_cache.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:



4
5
6
7
8
# File 'lib/action_controller/caching/sql_cache.rb', line 4

def self.included(base) #:nodoc:
  if defined?(ActiveRecord) && ActiveRecord::Base.respond_to?(:cache)
    base.alias_method_chain :perform_action, :caching
  end
end