Class: Sequent::Util::Web::ClearCache
- Inherits:
-
Object
- Object
- Sequent::Util::Web::ClearCache
- Defined in:
- lib/sequent/util/web/clear_cache.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ ClearCache
constructor
A new instance of ClearCache.
Constructor Details
#initialize(app) ⇒ ClearCache
Returns a new instance of ClearCache.
7 8 9 |
# File 'lib/sequent/util/web/clear_cache.rb', line 7 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
11 12 13 14 15 |
# File 'lib/sequent/util/web/clear_cache.rb', line 11 def call(env) @app.call(env) ensure Sequent.aggregate_repository.clear! end |