aboutsummaryrefslogtreecommitdiffstats
path: root/actiontext/lib
diff options
context:
space:
mode:
authorAbhay Nikam <nikam.abhay1@gmail.com>2019-04-18 00:37:15 +0530
committerAbhay Nikam <nikam.abhay1@gmail.com>2019-04-19 08:30:59 +0530
commitcfe30cee3e1a40dabe95b8f1c7d8a58629ea5277 (patch)
treea0dc5f06cbe0e69c4416d01cd381601bb76cc97e /actiontext/lib
parent72842b36953f1620b59d3fed4d748a8cfab986c3 (diff)
downloadrails-cfe30cee3e1a40dabe95b8f1c7d8a58629ea5277.tar.gz
rails-cfe30cee3e1a40dabe95b8f1c7d8a58629ea5277.tar.bz2
rails-cfe30cee3e1a40dabe95b8f1c7d8a58629ea5277.zip
Adds a warning message for action text installer if application pack is missing.
Diffstat (limited to 'actiontext/lib')
-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