Skip to content

Fix keyword argument forwarding for Ruby 3#17

Merged
wt-l00 merged 1 commit intomasterfrom
remove_ruby2_keywords
Jan 13, 2026
Merged

Fix keyword argument forwarding for Ruby 3#17
wt-l00 merged 1 commit intomasterfrom
remove_ruby2_keywords

Conversation

@wt-l00
Copy link
Contributor

@wt-l00 wt-l00 commented Jan 13, 2026

Changes

This PR updates argument forwarding in octoball to properly support Ruby 3 keyword argument semantics.

  • Explicitly accept and forward **kwargs in association, persistence, and relation proxy methods
  • Replace implicit keyword forwarding via ruby2_keywords
  • Ensure keyword arguments are correctly passed through shard switching wrappers

Since octoball targets Ruby 3.2+, this aligns the implementation with Ruby 3 behavior and prevents keyword-related ArgumentError when calling ActiveRecord APIs.

Ruby 3 requires explicit keyword argument forwarding.
This replaces ruby2_keywords with **kwargs to avoid ArgumentError
when calling ActiveRecord APIs.
Copy link
Contributor

@fumihumi fumihumi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm +1

@wt-l00 wt-l00 merged commit b8659df into master Jan 13, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants