From 71839aca6da796ee26a6a59bb1e01894c863958f Mon Sep 17 00:00:00 2001 From: George Claghorn Date: Fri, 12 Oct 2018 15:13:07 -0400 Subject: APPLICATION_PATH_PATH -> APPLICATION_PACK_PATH --- lib/templates/installer.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/templates/installer.rb b/lib/templates/installer.rb index cfe6b66ed2..ee5a5af75b 100644 --- a/lib/templates/installer.rb +++ b/lib/templates/installer.rb @@ -12,11 +12,11 @@ copy_file "#{__dir__}/../../app/views/active_storage/blobs/_blob.html.erb", say "Installing JavaScript dependency" run "yarn add https://github.com/rails/actiontext" -APPLICATION_PATH_PATH = "app/javascript/packs/application.js" +APPLICATION_PACK_PATH = "app/javascript/packs/application.js" -if File.exists?(APPLICATION_PATH_PATH) && File.read(APPLICATION_PATH_PATH) !~ /import "actiontext"/ +if File.exists?(APPLICATION_PACK_PATH) && File.read(APPLICATION_PACK_PATH) !~ /import "actiontext"/ say "Adding import to default JavaScript pack" - append_to_file APPLICATION_PATH_PATH, <<-EOS + append_to_file APPLICATION_PACK_PATH, <<-EOS import "actiontext" EOS end -- cgit v1.2.3