提交 91656aed 编写于 作者: S Sergey Novikov

Allow adding custom paths for action_cable channels

上级 8383f79d
......@@ -15,13 +15,15 @@ def initialize
@connection_class = ApplicationCable::Connection
@worker_pool_size = 100
@channels_path = Rails.root.join('app/channels')
@channels_path = [Rails.root.join('app/channels')]
@disable_request_forgery_protection = false
end
def channel_paths
@channels ||= Dir["#{channels_path}/**/*_channel.rb"]
@channels ||= channels_path.collect do |channel_path|
Dir["#{channel_path}/**/*_channel.rb"]
end.flatten
end
def channel_class_names
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册