Sha256: e0584f2a62dabd324042f79d3eead69fefb3173a2e8ac904472ae07f407f9f88

Contents?: true

Size: 455 Bytes

Versions: 7

Compression:

Stored size: 455 Bytes

Contents

// Action Cable provides the framework to deal with WebSockets in Rails.
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
//
<% require_asset("action_cable") if Rails::VERSION::MAJOR >= 5 %>
//= require_self
//= require_tree ./channels

<% if Rails::VERSION::MAJOR >= 5 %>
  (function() {
    this.App || (this.App = {});

    App.cable = ActionCable.createConsumer();

  }).call(this);
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sail-3.2.0 spec/dummy/app/assets/javascripts/cable.js.erb
sail-3.1.0 spec/dummy/app/assets/javascripts/cable.js.erb
sail-3.0.1 spec/dummy/app/assets/javascripts/cable.js.erb
sail-3.0.0 spec/dummy/app/assets/javascripts/cable.js.erb
sail-2.1.1 spec/dummy/app/assets/javascripts/cable.js.erb
sail-2.1.0 spec/dummy/app/assets/javascripts/cable.js.erb
sail-2.0.0 spec/dummy/app/assets/javascripts/cable.js.erb