Module: ActionController::CachingTracker::TrackPages
- Defined in:
- lib/action_controller/caching_tracker.rb
Overview
Methods to track pages that are cached. Adds the class variable page_cached_actions to each controller that includes CachingTracker. Inserts the tracking mechanism on the caches_page method.
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/action_controller/caching_tracker.rb', line 13 def self.included(base) #:nodoc: base.extend(ClassMethods) base.class_eval do include InstanceMethods @@page_cached_actions = [] cattr_accessor :page_cached_actions class << self alias_method_chain :caches_page, :tracking end end end |