mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
acfdcf5568
* Move specific requires close to where they're needed. * Use the private active_support/rails dep to wrap up common needs like eager autoload and module delegation. * Use a single Rails engine rather than an engine and a railtie. * Prefer `AS::JSON.encode` to `Object#to_json`.
19 lines
469 B
Ruby
19 lines
469 B
Ruby
require 'eventmachine'
|
|
EventMachine.epoll if EventMachine.epoll?
|
|
EventMachine.kqueue if EventMachine.kqueue?
|
|
|
|
module ActionCable
|
|
module Server
|
|
extend ActiveSupport::Autoload
|
|
|
|
eager_autoload do
|
|
autoload :Base
|
|
autoload :Broadcasting
|
|
autoload :Connections
|
|
autoload :Configuration
|
|
|
|
autoload :Worker
|
|
autoload :ActiveRecordConnectionManagement, 'action_cable/server/worker/active_record_connection_management'
|
|
end
|
|
end
|
|
end
|