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

Don't require rollbar/rails on initializer #310

Merged
merged 1 commit into from
Sep 30, 2015

Conversation

jondeandres
Copy link
Contributor

Rollbar::Rails becomes an empty module. That functionality is given by
the Railtie.

However, seems that in the tests we were calling
Rollbar::Rails.initialize, so the method has been moved to a spec helper.

Rollbar::Rails becomes an empty module. That functionality is given by
the Railtie.

However, seems that in the tests we were calling
`Rollbar::Rails.initialize`, so the method has been moved to a spec helper.
@@ -1,4 +1,3 @@
require 'rollbar/rails'
Copy link
Member

Choose a reason for hiding this comment

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

Will customers that already have this line in their generated initializer need to remove it? If they don't remove it, what will happen?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The file has not been deleted, so the require itself doesn't generate any error. That file just configured the notifier for rails, framework, logger, etc...But that is actually done in the railtie, what is enough.

jondeandres added a commit that referenced this pull request Sep 30, 2015
Don't require rollbar/rails on initializer
@jondeandres jondeandres merged commit 1ea1d13 into master Sep 30, 2015
@jondeandres jondeandres deleted the fix-rails-initializer-testing branch September 30, 2015 11:52
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