Class: Sequent::Util::Web::ClearCache

Inherits:
Object
  • Object
show all
Defined in:
lib/sequent/util/web/clear_cache.rb

Instance Method Summary collapse

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