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

Only load the railtie if Rails::Railtie is defined #231

Merged
merged 1 commit into from
Oct 1, 2015

Conversation

jeffutter
Copy link
Contributor

This fixes a problem in a project I am working on. We are working on a non-rails project but pull in some rails libraries for html sanitization. These libraries define Rails but not Rails::Railtie, thus rspec_api_documentation blows up when it tries to load the railtie.

oestrich added a commit that referenced this pull request Oct 1, 2015
Only load the railtie if Rails::Railtie is defined
@oestrich oestrich merged commit 3fc9cf9 into zipmark:master Oct 1, 2015
@oestrich
Copy link
Contributor

oestrich commented Oct 1, 2015

Thanks!

@jeffutter
Copy link
Contributor Author

That was fast :) Thanks for the quick response.

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