diff options
author | Javan Makhmali <javan@javan.us> | 2019-01-16 17:09:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-16 17:09:53 -0500 |
commit | a5fee7d531c06176ecc8815f52d9d54050c274ce (patch) | |
tree | 11631db8b66c8d7d272dda11c715aeb253eb2ecc /actionview/app/assets | |
parent | 90536ebfb3f0ca6971bc3ea4e43f20b8e977539b (diff) | |
parent | 385d31d209a957946378307e50aa739ccfadfea1 (diff) | |
download | rails-a5fee7d531c06176ecc8815f52d9d54050c274ce.tar.gz rails-a5fee7d531c06176ecc8815f52d9d54050c274ce.tar.bz2 rails-a5fee7d531c06176ecc8815f52d9d54050c274ce.zip |
Merge pull request #34949 from javan/js/compact-start
Minimize boilerplate setup code for JavaScript libraries
Diffstat (limited to 'actionview/app/assets')
-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 |