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

Check Rails version before accessing ::Rails::Railtie #113

Closed
sgronblo opened this issue Feb 24, 2012 · 2 comments
Closed

Check Rails version before accessing ::Rails::Railtie #113

sgronblo opened this issue Feb 24, 2012 · 2 comments
Labels

Comments

@sgronblo
Copy link

When requiring simplecov in a Rails 2 project, I get an uninitialized constant error due to ::Rails::Railtie. If I comment out the part that loads the railtie.rb file, code coverage generation works fine. Maybe you could define the Rake task in a different way if using Rails 2 or simply refrain from defining it if RailsTie is uninitialized?

@colszowka
Copy link
Collaborator

Damn, that's a big regression. Will fix it today and release a new gem.

@colszowka
Copy link
Collaborator

Just pushed 0.6.1 to Rubygems.org, should resolve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants