Skip to content

Commit 4f868c5

Browse files
justin808claude
andcommitted
Fix ConnectionPool.new to use keyword arguments for Ruby 3.4
Ruby 3.4 changed how hash-to-keyword argument conversion works. Changed from passing a hash as a positional argument to explicit keyword arguments to ensure compatibility. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a07f022 commit 4f868c5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

react_on_rails/lib/react_on_rails/server_rendering_pool/ruby_embedded_java_script.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ module ServerRenderingPool
99
class RubyEmbeddedJavaScript
1010
class << self
1111
def reset_pool
12-
options = {
12+
@js_context_pool = ConnectionPool.new(
1313
size: ReactOnRails.configuration.server_renderer_pool_size,
1414
timeout: ReactOnRails.configuration.server_renderer_timeout
15-
}
16-
@js_context_pool = ConnectionPool.new(options) { create_js_context }
15+
) { create_js_context }
1716
end
1817

1918
def reset_pool_if_server_bundle_was_modified

0 commit comments

Comments
 (0)