Skip to content

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 Confirmed and unconfirmed bugs reported by us and customers. 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

bug Confirmed and unconfirmed bugs reported by us and customers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants