Module: ActionController::CachingTracker::TrackPages::ClassMethods

Defined in:
lib/action_controller/caching_tracker.rb

Instance Method Summary collapse

Instance Method Details

#caches_page_with_tracking(*actions) ⇒ Object

Saves the collection of actions that are passed to caches_page if perform_caching is true.



28
29
30
31
# File 'lib/action_controller/caching_tracker.rb', line 28

def caches_page_with_tracking(*actions)
  self.page_cached_actions = actions.map(&:to_s) if perform_caching
  caches_page_without_tracking(*actions)
end