Skip to content

Commit

Permalink
[ci skip] Fix grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay Vishnoi committed Dec 18, 2015
1 parent 477bed8 commit ebad5c7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions actioncable/README.md
Expand Up @@ -202,7 +202,7 @@ end
```

```coffeescript
# Client-side which assumes you've already requested the right to send web notifications
# Client-side, which assumes you've already requested the right to send web notifications
App.cable.subscriptions.create "WebNotificationsChannel",
received: (data) ->
new Notification data["title"], body: data["body"]
Expand Down Expand Up @@ -236,7 +236,7 @@ end
Pass an object as the first argument to `subscriptions.create`, and that object will become your params hash in your cable channel. The keyword `channel` is required.

```coffeescript
# Client-side which assumes you've already requested the right to send web notifications
# Client-side, which assumes you've already requested the right to send web notifications
App.cable.subscriptions.create { channel: "ChatChannel", room: "Best Room" },
received: (data) ->
@appendLine(data)
Expand Down Expand Up @@ -279,7 +279,7 @@ end
```

```coffeescript
# Client-side which assumes you've already requested the right to send web notifications
# Client-side, which assumes you've already requested the right to send web notifications
App.chatChannel = App.cable.subscriptions.create { channel: "ChatChannel", room: "Best Room" },
received: (data) ->
# data => { sent_by: "Paul", body: "This is a cool chat app." }
Expand Down
2 changes: 1 addition & 1 deletion actioncable/lib/action_cable/server/base.rb
Expand Up @@ -42,7 +42,7 @@ def worker_pool
@worker_pool ||= ActionCable::Server::Worker.pool(size: config.worker_pool_size)
end

# Requires and returns an hash of all the channel class constants keyed by name.
# Requires and returns a hash of all the channel class constants keyed by name.
def channel_classes
@channel_classes ||= begin
config.channel_paths.each { |channel_path| require channel_path }
Expand Down
2 changes: 1 addition & 1 deletion actioncable/lib/action_cable/server/broadcasting.rb
Expand Up @@ -15,7 +15,7 @@ module Server
# ActionCable.server.broadcast \
# "web_notifications_1", { title: 'New things!', body: 'All shit fit for print' }
#
# # Client-side coffescript which assumes you've already requested the right to send web notifications
# # Client-side coffescript, which assumes you've already requested the right to send web notifications
# App.cable.subscriptions.create "WebNotificationsChannel",
# received: (data) ->
# new Notification data['title'], body: data['body']
Expand Down

0 comments on commit ebad5c7

Please sign in to comment.