aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2019-04-19 08:28:06 -0400
committerGitHub <noreply@github.com>2019-04-19 08:28:06 -0400
commit3c8ea319d0fa4cd1e707a294ce1be4ffc8cd78b9 (patch)
tree5f0df160f7aaf6c6e943f989dad3eb60379a9421
parent00310bf61aa0a3be1a4618e0dd3886dcfd05c799 (diff)
parentcfe30cee3e1a40dabe95b8f1c7d8a58629ea5277 (diff)
downloadrails-3c8ea319d0fa4cd1e707a294ce1be4ffc8cd78b9.tar.gz
rails-3c8ea319d0fa4cd1e707a294ce1be4ffc8cd78b9.tar.bz2
rails-3c8ea319d0fa4cd1e707a294ce1be4ffc8cd78b9.zip
Merge pull request #36019 from abhaynikam/35845-add-webpacker-gem-to-update-task
Adds a warning message for action text installer if application pack …
-rw-r--r--actiontext/lib/templates/installer.rb13
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