Sha256: 993c8ae10a936dd6e9296a11081c50be2aeec481c1066c5cac44a5f238012c25

Contents?: true

Size: 469 Bytes

Versions: 1

Compression:

Stored size: 469 Bytes

Contents

require 'rails'

module ActiveJobChannel
  # An Engine ties us into a Rails app
  # doc: http://guides.rubyonrails.org/engines.html
  class Engine < ::Rails::Engine
    ::ActiveSupport.on_load(:active_job) do
      require 'active_job_channel/broadcaster'
    end

    ::ActiveSupport.on_load(:action_cable) do
      require 'active_job_channel/channel'
      routes.draw do
        mount ::ActionCable.server => '/cable/active_job_channel'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_job_channel-0.4.0 lib/active_job_channel/engine.rb