1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove anemic indirection

This commit is contained in:
David Heinemeier Hansson 2015-06-21 21:45:37 +02:00
parent 125a8445f3
commit 1029c49c32
2 changed files with 1 additions and 6 deletions

View file

@ -81,11 +81,6 @@ module ActionCable
@websocket.send data
end
def handle_exception
close
end
def close
logger.error "Closing connection"
@websocket.close

View file

@ -37,7 +37,7 @@ module ActionCable
logger.error "There was an exception - #{e.class}(#{e.message})"
logger.error e.backtrace.join("\n")
handle_exception
close
end
end
end