diff options
author | Abhay Nikam <nikam.abhay1@gmail.com> | 2019-04-18 00:37:15 +0530 |
---|---|---|
committer | Abhay Nikam <nikam.abhay1@gmail.com> | 2019-04-19 08:30:59 +0530 |
commit | cfe30cee3e1a40dabe95b8f1c7d8a58629ea5277 (patch) | |
tree | a0dc5f06cbe0e69c4416d01cd381601bb76cc97e | |
parent | 72842b36953f1620b59d3fed4d748a8cfab986c3 (diff) | |
download | rails-cfe30cee3e1a40dabe95b8f1c7d8a58629ea5277.tar.gz rails-cfe30cee3e1a40dabe95b8f1c7d8a58629ea5277.tar.bz2 rails-cfe30cee3e1a40dabe95b8f1c7d8a58629ea5277.zip |
Adds a warning message for action text installer if application pack is missing.
-rw-r--r-- | actiontext/lib/templates/installer.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/actiontext/lib/templates/installer.rb b/actiontext/lib/templates/installer.rb index a8000eb9fc..a15ada92bb 100644 --- a/actiontext/lib/templates/installer.rb +++ b/actiontext/lib/templates/installer.rb @@ -29,4 +29,17 @@ if APPLICATION_PACK_PATH.exist? append_to_file APPLICATION_PACK_PATH, "\n#{line}" end end +else + warn <<~WARNING + WARNING: Action Text can't locate your JavaScript bundle to add its package dependencies. + + Add these lines to any bundles: + + require("trix") + require("@rails/actiontext") + + Alternatively, install and setup the webpacker gem then rerun `bin/rails action_text:install` + to have these dependencies added automatically. + + WARNING end |