diff options
author | George Claghorn <george@basecamp.com> | 2018-10-12 15:13:07 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-10-12 15:13:07 -0400 |
commit | 71839aca6da796ee26a6a59bb1e01894c863958f (patch) | |
tree | 8fc8bcf2b6b1c78b47a990cd0dd4a9ff003744b5 /lib/templates/installer.rb | |
parent | baeb679e4e280e63a931a02ca832f1eca426fd3d (diff) | |
download | rails-71839aca6da796ee26a6a59bb1e01894c863958f.tar.gz rails-71839aca6da796ee26a6a59bb1e01894c863958f.tar.bz2 rails-71839aca6da796ee26a6a59bb1e01894c863958f.zip |
APPLICATION_PATH_PATH -> APPLICATION_PACK_PATH
Diffstat (limited to 'lib/templates/installer.rb')
-rw-r--r-- | lib/templates/installer.rb | 6 |
1 files 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 |