From 385d31d209a957946378307e50aa739ccfadfea1 Mon Sep 17 00:00:00 2001
From: Javan Makhmali <javan@javan.us>
Date: Wed, 16 Jan 2019 14:09:10 -0500
Subject: Minimize boilerplate setup code for JavaScript libraries

---
 actionview/app/assets/javascripts/README.md | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'actionview/app')

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
-- 
cgit v1.2.3