Sha256: fd764dc94ba0a122972e2031c3aaef25cbc837f4f802cbac7b80d399daf0f313

Contents?: true

Size: 701 Bytes

Versions: 1

Compression:

Stored size: 701 Bytes

Contents

# frozen_string_literal: true

module P2pStreamsChannel
    class Engine < ::Rails::Engine
        config.autoload_once_paths = %W( #{root}/app/channels )
        
        initializer "p2p_streams_channel.assets" do
            if Rails.application.config.respond_to?(:assets)
              Rails.application.config.assets.precompile += Dir["#{root}/app/assets/javascripts/*/*"]
            end
        end

        config.autoload_once_paths = %W( #{root}/app/helpers )
        initializer "p2p_streams_channel.helpers" do
            ActiveSupport.on_load(:action_controller_base) do
              helper P2pStreamsChannel::Engine.helpers
            end
        end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
p2p_streams_channel-0.0.2 lib/p2p_streams_channel/engine.rb