rails

https://github.com/rails/rails

Ruby

Ruby on Rails

ActionCable::Connection::Identification::ClassMethods#identified_by

Mark a key as being a connection identifier index that can then be used to find the specific connection again later.
Common identifiers are current_user and current_account, but could be anything, really.

Note that anything marked as an identifier will automatically create a delegate by the same name on any
channel instances created off the connection.

Source | Google | Stack overflow

Edit

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

cd rails

open actioncable/lib/action_cable/connection/identification.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActionCable--Connection--Identification--ClassMethods-identified_by-for-pr


# Commit to git

git add actioncable/lib/action_cable/connection/identification.rbgit commit -m "better docs for ActionCable::Connection::Identification::ClassMethods#identified_by"


# 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--Connection--Identification--ClassMethods-identified_by-for-pr

hub pull-request


# Celebrate!