aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorJavan Makhmali <javan@javan.us>2019-01-10 11:50:32 -0500
committerGitHub <noreply@github.com>2019-01-10 11:50:32 -0500
commit2163762c3cd7cb58223f882405ed3c6dcfb6a2cd (patch)
tree567546bda56ed0be9b3408ec10ead32adc62e43a /guides
parent9edc84cdfa8908a436901d85309cadf65d457d8f (diff)
parent86b489e3d6a9efbefbc62e8531d0f5850934d4e1 (diff)
downloadrails-2163762c3cd7cb58223f882405ed3c6dcfb6a2cd.tar.gz
rails-2163762c3cd7cb58223f882405ed3c6dcfb6a2cd.tar.bz2
rails-2163762c3cd7cb58223f882405ed3c6dcfb6a2cd.zip
Merge pull request #34905 from javan/move-npm-packages-to-rails-scope
Move all npm packages to @rails scope
Diffstat (limited to 'guides')
-rw-r--r--guides/source/action_cable_overview.md2
-rw-r--r--guides/source/active_storage_overview.md6
2 files changed, 4 insertions, 4 deletions
diff --git a/guides/source/action_cable_overview.md b/guides/source/action_cable_overview.md
index 7809607574..77a1b73bae 100644
--- a/guides/source/action_cable_overview.md
+++ b/guides/source/action_cable_overview.md
@@ -151,7 +151,7 @@ established using the following JavaScript, which is generated by default by Rai
// 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.
-import ActionCable from "actioncable"
+import ActionCable from "@rails/actioncable"
export default ActionCable.createConsumer()
```
diff --git a/guides/source/active_storage_overview.md b/guides/source/active_storage_overview.md
index 51f50e8931..6d07d34dd7 100644
--- a/guides/source/active_storage_overview.md
+++ b/guides/source/active_storage_overview.md
@@ -489,7 +489,7 @@ directly from the client to the cloud.
Using the npm package:
```js
- import * as ActiveStorage from "activestorage"
+ import * as ActiveStorage from "@rails/activestorage"
ActiveStorage.start()
```
@@ -616,7 +616,7 @@ of choice, instantiate a DirectUpload and call its create method. Create takes
a callback to invoke when the upload completes.
```js
-import { DirectUpload } from "activestorage"
+import { DirectUpload } from "@rails/activestorage"
const input = document.querySelector('input[type=file]')
@@ -664,7 +664,7 @@ will call the object's `directUploadWillStoreFileWithXHR` method. You can then
bind your own progress handler on the XHR.
```js
-import { DirectUpload } from "activestorage"
+import { DirectUpload } from "@rails/activestorage"
class Uploader {
constructor(file, url) {