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

Add support for Model Class in Action and Frame helpers #597

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

afrase
Copy link

@afrase afrase commented Mar 6, 2024

Hello,

This PR updates the turbo_frame_tag and turbo_stream_action_tag helpers to support passing a class argument in the same way ActionView::RecordIdentifier#dom_id does.

I updated the methods to also check for a Class since dom_id essentially does that.

I didn't see any contributor docs so I'm not sure if I missed something.
Thanks.

Updated turbo_stream_action_tag and turbo_frame_tag helpers to accept a Model Class as their target.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant