Skip to content

Commit d5786b2

Browse files
committed
ActionCable: Use ... to passthrough args
1 parent 08cb349 commit d5786b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

actioncable/lib/action_cable/connection/web_socket.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ def alive?
2222
websocket&.alive?
2323
end
2424

25-
def transmit(data)
26-
websocket&.transmit data
25+
def transmit(...)
26+
websocket&.transmit(...)
2727
end
2828

29-
def close(code = nil, reason = nil)
30-
websocket&.close code, reason
29+
def close(...)
30+
websocket&.close(...)
3131
end
3232

3333
def protocol

0 commit comments

Comments
 (0)