Class: Dragonfly::CookieMonster
- Inherits:
-
Object
- Object
- Dragonfly::CookieMonster
- Defined in:
- lib/dragonfly/cookie_monster.rb
Instance Method Summary (collapse)
- - (Object) call(env)
-
- (CookieMonster) initialize(app)
constructor
A new instance of CookieMonster.
Constructor Details
- (CookieMonster) initialize(app)
Returns a new instance of CookieMonster
4 5 6 |
# File 'lib/dragonfly/cookie_monster.rb', line 4 def initialize(app) @app = app end |
Instance Method Details
- (Object) call(env)
8 9 10 11 12 |
# File 'lib/dragonfly/cookie_monster.rb', line 8 def call(env) status, headers, body = @app.call(env) headers.delete('Set-Cookie') if env['dragonfly.job'] [status, headers, body] end |