aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
diff options
context:
space:
mode:
authorTsukuru Tanimichi <info+git@ttanimichi.com>2018-05-08 16:31:47 +0900
committerTsukuru Tanimichi <info+git@ttanimichi.com>2018-05-16 20:24:57 +0900
commit7b0a316f2db449cfebe9897c74160378f9e4dc85 (patch)
tree218079430214488f3bab9d30f591c4d675e6e22c /railties/lib/rails/generators
parentbfe4248c78ce6e93ebba8c7b9ada1c68cd79bb85 (diff)
downloadrails-7b0a316f2db449cfebe9897c74160378f9e4dc85.tar.gz
rails-7b0a316f2db449cfebe9897c74160378f9e4dc85.tar.bz2
rails-7b0a316f2db449cfebe9897c74160378f9e4dc85.zip
Don't generate yarn's contents in `app:update` task if it's skipped
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r--railties/lib/rails/generators/rails/app/app_generator.rb4
1 files changed, 1 insertions, 3 deletions
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