-
Notifications
You must be signed in to change notification settings - Fork 444
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
Add optional compatibility module for capture/form/turbo compatibility fixes #1650
Conversation
This adds an optional module, `CaptureCompatibility` which is meant to monkey patche `ActionView::Base` so that forms, turbo frames, and content_for, and other common Rails code works as-expected.
Co-authored-by: Joel Hawksley <[email protected]>
Alright, got the matrix build working and validated it's running the compatibility tests because the |
@BlakeWilliams I updated the description to mention all issues (I could find) that would be solved by this PR. |
@Spone great idea, thanks for updating it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎊 I'll be sure to mention asking for feedback on this when I publish the next RC changelog ❤️
It's not easy to add a test for this since HAML raises in this scenario too.
Co-authored-by: Richard Macklin <[email protected]>
Alright, I tested this module on GitHub locally, clicked around and it all worked as expected. I also ran the tests with the patch enabled and all is 🟢. That being said, this is still experimental so please validate that it works as expected in your own applications and report any bugs you run into (with reproducible examples, please). |
…1674) * Add capture_compatibility_patch_enabled as option Related to #1650 and #1644 * Update CHANGELOG.md * Update docs/known_issues.md * Update docs/known_issues.md * reorder item * make test more flexible to account for change in rails main --------- Co-authored-by: Joel Hawksley <[email protected]> Co-authored-by: Joel Hawksley <[email protected]>
…y fixes (ViewComponent#1650) This adds an optional module, `CaptureCompatibility` which is meant to monkey patch `ActionView::Base` so that forms, turbo frames, and content_for, and other common Rails code works as-expected.
…iewComponent#1674) * Add capture_compatibility_patch_enabled as option Related to ViewComponent#1650 and ViewComponent#1644 * Update CHANGELOG.md * Update docs/known_issues.md * Update docs/known_issues.md * reorder item * make test more flexible to account for change in rails main --------- Co-authored-by: Joel Hawksley <[email protected]> Co-authored-by: Joel Hawksley <[email protected]>
…y fixes (ViewComponent#1650) This adds an optional module, `CaptureCompatibility` which is meant to monkey patch `ActionView::Base` so that forms, turbo frames, and content_for, and other common Rails code works as-expected.
…iewComponent#1674) * Add capture_compatibility_patch_enabled as option Related to ViewComponent#1650 and ViewComponent#1644 * Update CHANGELOG.md * Update docs/known_issues.md * Update docs/known_issues.md * reorder item * make test more flexible to account for change in rails main --------- Co-authored-by: Joel Hawksley <[email protected]> Co-authored-by: Joel Hawksley <[email protected]>
Thank you for this!! Just blundered into this particular bug and was super stoked to find all I had to do was update the gem and enable the experimental mode 🎉 |
Thank you for this, everyone who was involved. You all rock! |
This adds an optional module,
CaptureCompatibility
which is meant tomonkey patch
ActionView::Base
so that forms, turbo frames, andcontent_for, and other common Rails code works as-expected.
Close #1651, close #1384, close #1485, close #1099, close #241, close #1607, close #1137