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

config examples for ActionCable now use Rails.application.config.action_cable #23554

Merged

Conversation

romaimperator
Copy link
Contributor

Some existing examples used ActionCable.server.config but for
configuring allowed_request_origins that is overridden in development
mode. The correct place to set that is
Rails.application.config.action_cable which the ActionCable initializer
loads from. I thought the other two examples should be changed as well
just in case a default value that would override a configured value is
introduced for either log_tags or disable_request_forgery_protection in
the future.

…on_cable

Some existing examples used ActionCable.server.config but for
configuring allowed_request_origins that is overridden in development
mode. The correct place to set that is
Rails.application.config.action_cable which the ActionCable initializer
loads from. I thought the other two examples should be changed as well
just in case a default value that would override a configured value is
introduced for either log_tags or disable_request_forgery_protection in
the future.
@rails-bot
Copy link

Thanks for the pull request, and welcome! The Rails team is excited to review your changes, and you should hear from @rafaelfranca (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@romaimperator
Copy link
Contributor Author

Doh I realized right as I hit the button to create the pull request I should have added [ci-skip]. My bad

@romaimperator
Copy link
Contributor Author

Also see #23530 I made yesterday for more information on why I made this new pull request.

@maclover7
Copy link
Contributor

👍 Thank you for your contribution!

In the future, please add [ci skip] to any commits that involve changing the documentation, to avoid running the entire Rails test suite.

maclover7 added a commit that referenced this pull request Feb 8, 2016
…ig_example

config examples for ActionCable now use Rails.application.config.action_cable
@maclover7 maclover7 merged commit 2b18bd5 into rails:master Feb 8, 2016
@maclover7
Copy link
Contributor

❤️ 💚 💙 💛 💜

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

Successfully merging this pull request may close these issues.

None yet

4 participants