123456789_123456789_123456789_123456789_123456789_

Class: ActionView::CacheExpiry::Executor

Relationships & Source Files
Inherits: Object
Defined in: actionview/lib/action_view/cache_expiry.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(watcher:) ⇒ Executor

[ GitHub ]

  
# File 'actionview/lib/action_view/cache_expiry.rb', line 6

def initialize(watcher:)
  @cache_expiry = CacheExpiry.new(watcher: watcher)
end

Instance Method Details

#before(target)

[ GitHub ]

  
# File 'actionview/lib/action_view/cache_expiry.rb', line 10

def before(target)
  @cache_expiry.clear_cache_if_necessary
end