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:
parent
75b3679183
commit
5d3ebb7105
3 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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()
|
||||
```
|
||||
|
||||
|
|
|
@ -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] -%>
|
||||
|
|
Loading…
Reference in a new issue