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

Fix two doc bugs #401

Merged
merged 1 commit into from
Apr 19, 2016
Merged

Fix two doc bugs #401

merged 1 commit into from
Apr 19, 2016

Conversation

paulrnash
Copy link
Contributor

  1. password_confirmation was listed twice
  2. Example for ignoring an exception did not match text above it (said 404's, actually showed ignoring RecordNotFound)

1) password_confirmation was listed twice
2) Example for ignoring an exception did not match text above it (said 404's, actually showed ignoring RecordNotFound)
@@ -434,7 +433,7 @@ If you'd like to customize this list, modify the example code in ```config/initi

```ruby
config.exception_level_filters.merge!({
'ActiveRecord::RecordNotFound' => 'ignore',
'ActionController::RoutingError' => 'ignore',
Copy link
Contributor

Choose a reason for hiding this comment

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

Here you changed a not related line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, please see the PR comment. This was the second doc bug I fixed. See how the doc text says "to ignore 404 errors..." and then the example is for RecordNotFound instead. Expand the context more at line 432 to see why the example is incorrect.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, sorry, you are right. I think the comment is confusing but right at same time, since if you raise a ActiveRecord::RecordNotFound exception in Rails you will have a 404 response code. I'll check this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jondeandres jondeandres merged commit 08fc06d into rollbar:master Apr 19, 2016
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