about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-03 19:10:56 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-03 19:10:56 +0200
commitfeda1e65541b5c723565d1687998a975f0d95633 (patch)
tree99a8d5318dbfc880eb59e0204dac3961dce52d5f
parent70e9dd0b5b2c4b2d695334d8b63c6d58cb1619d8 (diff)
Catch warden throw in actioncable
-rw-r--r--app/channels/application_cable/connection.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/channels/application_cable/connection.rb b/app/channels/application_cable/connection.rb
index 0c4cac875..bdbf528be 100644
--- a/app/channels/application_cable/connection.rb
+++ b/app/channels/application_cable/connection.rb
@@ -16,6 +16,8 @@ module ApplicationCable
       else
         reject_unauthorized_connection
       end
+    rescue :warden
+      reject_unauthorized_connection
     end
   end
 end