initial commit (rails new sharedlists)
This commit is contained in:
commit
70ebeb473d
93 changed files with 8700 additions and 0 deletions
6
app/javascript/channels/consumer.js
Normal file
6
app/javascript/channels/consumer.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
// Action Cable provides the framework to deal with WebSockets in Rails.
|
||||
// You can generate new channels where WebSocket features live using the `bin/rails generate channel` command.
|
||||
|
||||
import { createConsumer } from "@rails/actioncable"
|
||||
|
||||
export default createConsumer()
|
5
app/javascript/channels/index.js
Normal file
5
app/javascript/channels/index.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Load all the channels within this directory and all subdirectories.
|
||||
// Channel files must be named *_channel.js.
|
||||
|
||||
const channels = require.context('.', true, /_channel\.js$/)
|
||||
channels.keys().forEach(channels)
|
Loading…
Add table
Add a link
Reference in a new issue