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

Fix session data for Action Cable callbacks #1314

Merged
merged 2 commits into from
Oct 4, 2024

Conversation

tombruijn
Copy link
Member

In issue #1313 it was reported that session data was not reported for Action Cable callbacks. This broke after PR #1209 where we changed the way we handle sample data by allowing merging, which required more strict type checks.

By calling to_h, ensure the value is a Hash, which is a valid sample data type.

Fixes #1313

In issue #1313 it was reported that session data was not reported for
Action Cable callbacks. This broke after PR #1209 where we changed the
way we handle sample data by allowing merging, which required more
strict type checks.

By calling `to_h`, ensure the value is a Hash, which is a valid sample
data type.

Fixes #1313
@tombruijn tombruijn added the bug label Oct 3, 2024
@tombruijn tombruijn self-assigned this Oct 3, 2024
This only changes one word in the changeset and can be squashed in the
history.

[skip ci]
@tombruijn tombruijn marked this pull request as ready for review October 3, 2024 14:57
@tombruijn tombruijn merged commit 41642be into main Oct 4, 2024
@tombruijn tombruijn deleted the action-cable-session-data branch October 4, 2024 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ActionCable: Unsupported data type 'ActionDispatch::Request::Session'
2 participants