From 7b0a316f2db449cfebe9897c74160378f9e4dc85 Mon Sep 17 00:00:00 2001 From: Tsukuru Tanimichi Date: Tue, 8 May 2018 16:31:47 +0900 Subject: Don't generate yarn's contents in `app:update` task if it's skipped --- railties/lib/rails/generators/rails/app/app_generator.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'railties/lib/rails/generators') diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index 0d2766c1ca..34067240d7 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -95,11 +95,9 @@ module Rails end def bin_when_updating - bin_yarn_exist = File.exist?("bin/yarn") - bin - if options[:api] && !bin_yarn_exist + if options[:skip_yarn] remove_file "bin/yarn" end end -- cgit v1.2.3