diff options
author | Javan Makhmali <javan@javan.us> | 2019-01-16 14:09:10 -0500 |
---|---|---|
committer | Javan Makhmali <javan@javan.us> | 2019-01-16 16:15:43 -0500 |
commit | 385d31d209a957946378307e50aa739ccfadfea1 (patch) | |
tree | 11631db8b66c8d7d272dda11c715aeb253eb2ecc /actionview | |
parent | 90536ebfb3f0ca6971bc3ea4e43f20b8e977539b (diff) | |
download | rails-385d31d209a957946378307e50aa739ccfadfea1.tar.gz rails-385d31d209a957946378307e50aa739ccfadfea1.tar.bz2 rails-385d31d209a957946378307e50aa739ccfadfea1.zip |
Minimize boilerplate setup code for JavaScript libraries
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/app/assets/javascripts/README.md | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionview/app/assets/javascripts/README.md b/actionview/app/assets/javascripts/README.md index 2b110e604f..b9682b61e2 100644 --- a/actionview/app/assets/javascripts/README.md +++ b/actionview/app/assets/javascripts/README.md @@ -40,8 +40,7 @@ In a conventional Rails application that uses the asset pipeline, require `rails If you're using the Webpacker gem or some other JavaScript bundler, add the following to your main JS file: ```javascript -import Rails from "@rails/ujs" -Rails.start() +require("@rails/ujs").start() ``` ## How to run tests |