diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-02-23 23:03:50 +0200 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-02-23 23:05:20 +0200 |
commit | ab63420233e124a6f04b76d5bc848d11ba28689c (patch) | |
tree | 7231432b0f6d910e637edc3d66291afdd24434e8 /railties/lib | |
parent | 5ecbeda0e225e4961977b5c516088cf12d92319f (diff) | |
download | rails-ab63420233e124a6f04b76d5bc848d11ba28689c.tar.gz rails-ab63420233e124a6f04b76d5bc848d11ba28689c.tar.bz2 rails-ab63420233e124a6f04b76d5bc848d11ba28689c.zip |
Improve generated file `app/assets/javascripts/application.js` of plugin
Add `//= require rails-ujs`
Closes #32094
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/plugin/templates/rails/javascripts.js.tt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/plugin/templates/rails/javascripts.js.tt b/railties/lib/rails/generators/rails/plugin/templates/rails/javascripts.js.tt index f3d80c87f5..51049826bf 100644 --- a/railties/lib/rails/generators/rails/plugin/templates/rails/javascripts.js.tt +++ b/railties/lib/rails/generators/rails/plugin/templates/rails/javascripts.js.tt @@ -10,6 +10,7 @@ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details // about supported directives. // +//= require rails-ujs <% unless skip_active_storage? -%> //= require activestorage <% end -%> |