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.
Edit
git clone [email protected]:rails/rails.git
cd rails
open actioncable/lib/action_cable/connection/identification.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ActionCable--Connection--Identification--ClassMethods-identified_by-for-pr
# Commit to gitgit add actioncable/lib/action_cable/connection/identification.rbgit commit -m "better docs for ActionCable::Connection::Identification::ClassMethods#identified_by"
# Open pull requestgem 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!