Class: FederalOffense::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/federal_offense/engine.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.cable_serverObject

Returns the value of attribute cable_server.



11
12
13
# File 'lib/federal_offense/engine.rb', line 11

def cable_server
  @cable_server
end

Class Method Details

.cable_configObject



13
14
15
16
17
18
19
# File 'lib/federal_offense/engine.rb', line 13

def cable_config
  @cable_config ||= ::ActionCable::Server::Configuration.new.tap do |config|
    config.logger = Rails.logger
    config.connection_class = -> { FederalOffense::ActionCable::Connection }
    config.mount_path = "cable"
  end
end