Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Rollbar::Middleware::Rack #558

Merged
merged 2 commits into from
Dec 20, 2016
Merged

Add Rollbar::Middleware::Rack #558

merged 2 commits into from
Dec 20, 2016

Conversation

jondeandres
Copy link
Contributor

Convert Rollbar::Middleware::Rack to be a class instead of a module,
so it can be added to the Rack middleware chain with use Rollbar::Middleware::Rack.

Also, move the code from Rollbar::Middleware::Sinatra to
Rollbar::Middleware::Rack since Sinatra behavior is a subset of Rack
behavior.

Convert `Rollbar::Middleware::Rack` to be a class instead of a module,
so it can be added to the Rack middleware chain with `use
Rollbar::Middleware::Rack`.

Also, move the code from `Rollbar::Middleware::Sinatra` to
`Rollbar::Middleware::Rack` since Sinatra behavior is a subset of Rack
behavior.
@jondeandres jondeandres force-pushed the rack-middleware branch 2 times, most recently from 0b547e1 to f388fc5 Compare December 20, 2016 17:58

```ruby
require 'rollbar/middleware/sinatra'
require 'rollbar/middleware/rack
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing an end '

@jondeandres jondeandres merged commit 535263a into master Dec 20, 2016
@jondeandres jondeandres deleted the rack-middleware branch December 20, 2016 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants