Last active
June 30, 2016 19:04
-
-
Save cmorss/533c983288693f05ab32429166527550 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def from_rack(env_hash) | |
req = ::Rack::Request.new(env_hash) | |
self.url = req.scheme && req.url.split('?').first | |
self.method = req.request_method | |
self.query_string = req.query_string | |
self.data = read_data_from(req) | |
self.headers = format_headers_for_sentry(env_hash) | |
self.env = format_env_for_sentry(env_hash) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment