1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Simpler import style

Which match the other imports.
This commit is contained in:
David Heinemeier Hansson 2018-06-25 16:22:49 +02:00
parent 75b3679183
commit 5d3ebb7105
3 changed files with 3 additions and 3 deletions

View file

@ -116,7 +116,7 @@ Active Storage, with its included JavaScript library, supports uploading directl
```
Using the npm package:
```js
import * as ActiveStorage from "activestorage"
import ActiveStorage from "activestorage"
ActiveStorage.start()
```
2. Annotate file inputs with the direct upload URL.

View file

@ -477,7 +477,7 @@ directly from the client to the cloud.
Using the npm package:
```js
import * as ActiveStorage from "activestorage"
import ActiveStorage from "activestorage"
ActiveStorage.start()
```

View file

@ -12,7 +12,7 @@ Turbolinks.start()
<%- end -%>
<%- unless skip_active_storage? -%>
import * as ActiveStorage from "activestorage"
import ActiveStorage from "activestorage"
ActiveStorage.start()
<%- end -%>
<%- unless options[:skip_action_cable] -%>