rails

https://github.com/rails/rails

Ruby

Ruby on Rails

ActionCable::SubscriptionAdapter::ChannelPrefix#channel_with_prefix

Returns the channel name, including channel_prefix specified in cable.yml

Source | Google | Stack overflow

Edit

git clone [email protected]:rails/rails.git

cd rails

open actioncable/lib/action_cable/subscription_adapter/channel_prefix.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActionCable--SubscriptionAdapter--ChannelPrefix-channel_with_prefix-for-pr


# Commit to git

git add actioncable/lib/action_cable/subscription_adapter/channel_prefix.rbgit commit -m "better docs for ActionCable::SubscriptionAdapter::ChannelPrefix#channel_with_prefix"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-ActionCable--SubscriptionAdapter--ChannelPrefix-channel_with_prefix-for-pr

hub pull-request


# Celebrate!