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

Minor Conflict with rails-api or using Rails::API #233

Open
mgorman42 opened this issue Apr 10, 2017 · 0 comments
Open

Minor Conflict with rails-api or using Rails::API #233

mgorman42 opened this issue Apr 10, 2017 · 0 comments

Comments

@mgorman42
Copy link

mgorman42 commented Apr 10, 2017

If built with the rails-api gem or as Rails::API, the ActionController::Helpers is disabled by default.

This causes an issue when trying to render :soap => response, since the soap builders rely on the WashOutHelper module.

A quick fix is to include ActionController::Helpers in the controllers that will be rendering soap response. A more robust fix would be to ensure that it is included when the WashOut::SOAP module is included into the controller.

EDIT: It looks like it does include the ActionController::Helpers if it is rails 5 and the controller is ActionController::API, but this doesn't handle the case of a rails 4 with rails-api gem

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

No branches or pull requests

1 participant