diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-03-22 19:39:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-22 19:39:26 -0400 |
commit | c111d1b36d5736e3e4afa111de3e3b3c09283486 (patch) | |
tree | 69985a8b3187744d6afe9afdf94e9824745388a4 /actioncable/lib | |
parent | f76c5b90c5adb9679cceeeec9b3e92f4f2eca879 (diff) | |
parent | 11a09dbe53973f51d2ab8e7d17695707955222a8 (diff) | |
download | rails-c111d1b36d5736e3e4afa111de3e3b3c09283486.tar.gz rails-c111d1b36d5736e3e4afa111de3e3b3c09283486.tar.bz2 rails-c111d1b36d5736e3e4afa111de3e3b3c09283486.zip |
Merge pull request #28537 from tjschuck/doc_actioncable_reject_unauthed_connx
Document AC::Connection::Authorization#reject_unauthorized_connection
Diffstat (limited to 'actioncable/lib')
-rw-r--r-- | actioncable/lib/action_cable/connection/authorization.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/actioncable/lib/action_cable/connection/authorization.rb b/actioncable/lib/action_cable/connection/authorization.rb index 85df206445..989a67d6df 100644 --- a/actioncable/lib/action_cable/connection/authorization.rb +++ b/actioncable/lib/action_cable/connection/authorization.rb @@ -3,11 +3,11 @@ module ActionCable module Authorization class UnauthorizedError < StandardError; end - private - def reject_unauthorized_connection - logger.error "An unauthorized connection attempt was rejected" - raise UnauthorizedError - end + # Closes the \WebSocket connection if it is open and returns a 404 "File not Found" response. + def reject_unauthorized_connection + logger.error "An unauthorized connection attempt was rejected" + raise UnauthorizedError + end end end end |