Adds a warning message for action text installer if application pack is missing.

This commit is contained in:
Abhay Nikam 2019-04-18 00:37:15 +05:30
parent 72842b3695
commit cfe30cee3e

@ -29,4 +29,17 @@
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