Skip to content

Conversation

@trystant
Copy link
Contributor

In your PR did you:

  • Include a description of the changes? Disabled rollbar in development.
  • Mention the issue the PR addresses?
  • Include screenshots of any changes to the UI?
  • Isolate any changes to gems (meaning that any new, updated, or removed gems and resulting code changes should be in their own PR)?
  • Add and/or update specs for your code?

# Here we'll disable in 'test':
config.enabled = false if Rails.env.test?
# Here we'll disable in 'test' and 'development':
config.enabled = false if Rails.env.test? or Rails.env.development?
Copy link
Contributor

Choose a reason for hiding this comment

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

@trystant or has super weird operator precedence, so I'd generally go with || in situations like this. That being said, I tried a similar change before I saw this PR, but it sounds like we might want to discuss what approach to take with this.

Copy link
Contributor

Choose a reason for hiding this comment

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

@mockdeep Yeah, or is lower on the Ruby operator precedence totem pole. I'll change that up.

@mnyon-grandkru mnyon-grandkru merged commit b2a74ed into main Mar 21, 2021
@mnyon-grandkru mnyon-grandkru deleted the 3841_remove_rollbar_from_development branch March 21, 2021 23:23
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.

5 participants