Skip to content

Commit

Permalink
Merge pull request #28537 from tjschuck/doc_actioncable_reject_unauth…
Browse files Browse the repository at this point in the history
…ed_connx

Document AC::Connection::Authorization#reject_unauthorized_connection
  • Loading branch information
rafaelfranca committed Mar 22, 2017
2 parents f76c5b9 + 11a09db commit c111d1b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions actioncable/lib/action_cable/connection/authorization.rb
Expand Up @@ -3,11 +3,11 @@ module Connection
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

0 comments on commit c111d1b

Please sign in to comment.