Class: ActionView::CacheExpiry::Executor
- Defined in:
- actionview/lib/action_view/cache_expiry.rb
Instance Method Summary collapse
- #before(target) ⇒ Object
-
#initialize(watcher:) ⇒ Executor
constructor
A new instance of Executor.
Constructor Details
#initialize(watcher:) ⇒ Executor
Returns a new instance of Executor.
6 7 8 |
# 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) ⇒ Object
10 11 12 |
# File 'actionview/lib/action_view/cache_expiry.rb', line 10 def before(target) @cache_expiry.clear_cache_if_necessary end |