Skip to content

Instantly share code, notes, and snippets.

@manveru
Created July 28, 2010 03:54
Show Gist options
  • Save manveru/493324 to your computer and use it in GitHub Desktop.
Save manveru/493324 to your computer and use it in GitHub Desktop.
class SetMailException
def initialize(app)
@app = app
end
def call(env)
status, header, body = @app.call(env)
rescue => ex
env['mail.exception'] = ex
raise ex
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment