提交 d1d1e303 编写于 作者: D David Heinemeier Hansson

Only mount the ActionCable server if ApplicationCable has been defined

上级 f229d045
......@@ -2,5 +2,5 @@
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
# Serve websocket cable requests in-process
mount ActionCable.server => '/cable'
mount ActionCable.server => '/cable' if defined?(ApplicationCable)
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册