Class: Texmailer::DontCache
- Inherits:
-
Object
- Object
- Texmailer::DontCache
- Defined in:
- lib/texmailer/wapp.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ DontCache
constructor
A new instance of DontCache.
Constructor Details
#initialize(app) ⇒ DontCache
Returns a new instance of DontCache.
4 5 6 |
# File 'lib/texmailer/wapp.rb', line 4 def initialize app @app = app end |
Instance Method Details
#call(env) ⇒ Object
7 8 9 10 11 |
# File 'lib/texmailer/wapp.rb', line 7 def call env res = @app.call(env) res[1]["Expires"] = (Time.now - 100).utc.rfc2822 return res end |