Skip to content

Commit

Permalink
DeployNotificationsChannel uses kwargs for Ruby 3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
orien committed Feb 9, 2024
1 parent 7174525 commit 214578c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/channels/deploy_notifications_channel.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true
class DeployNotificationsChannel < ActionCable::Channel::Base
def self.broadcast(count)
ActionCable.server.broadcast channel_name, count: count
ActionCable.server.broadcast(channel_name, {count: count})
end

# called when using javascript App.cable.subscriptions.create
Expand Down

0 comments on commit 214578c

Please sign in to comment.