Skip to content

Conversation

@lucasmazza
Copy link
Contributor

rails is a meta gem that can be skipped in a Rails app if we don't want to install gems like actionmailer, activerecord or activejob, while the railties gem is always present in a Rails app.

To ensure that Raven is properly loaded when the rails gem is not present we look for the railties gem, not rails in the Gem.loaded_specs Hash.

`rails` is a meta gem that can be skipped in a Rails app if we don't want to
install gems like `actionmailer`, `activerecord` or `activejob`, while the
`railties` gem is always present in a Rails app.

To ensure that Raven is properly loaded when the `rails` gem is not present
we look for the `railties` gem, not `rails` in the `Gem.loaded_specs` Hash.
@nateberkopec
Copy link
Contributor

👍 Great catch.

nateberkopec added a commit that referenced this pull request Apr 30, 2015
Change `Rails.inject` to look for the `railties` gem, not `rails`.
@nateberkopec nateberkopec merged commit c7b9eab into getsentry:master Apr 30, 2015
@lucasmazza lucasmazza deleted the lm-railties-compat branch April 30, 2015 20:02
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