aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorTsukuru Tanimichi <info+git@ttanimichi.com>2018-05-08 13:56:59 +0900
committerTsukuru Tanimichi <info+git@ttanimichi.com>2018-05-08 13:56:59 +0900
commit9ed1b07b5e1e8dac983e478224798f57f9e8874e (patch)
tree86183a9ca68c85baa3aa1c5a21f8d6951cef067c /railties
parent834be61e61a1ed55f056cdff12ffe4cdcaa7ca65 (diff)
downloadrails-9ed1b07b5e1e8dac983e478224798f57f9e8874e.tar.gz
rails-9ed1b07b5e1e8dac983e478224798f57f9e8874e.tar.bz2
rails-9ed1b07b5e1e8dac983e478224798f57f9e8874e.zip
Remove unused `remove_file` method
In #32780, We have supported the `--skip-sprockets` option in the `app:update` task. When `options[:api]` is truthy, `option[:skip_sprockets]` is also truthy. So we can remove this `remove_file` method. https://github.com/rails/rails/blob/42b9e7e50c084e119a679cf155b70b5efc4d36ff/railties/lib/rails/generators/rails/app/app_generator.rb#L281-L283
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/app/app_generator.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb
index bf086e0e0d..0d2766c1ca 100644
--- a/railties/lib/rails/generators/rails/app/app_generator.rb
+++ b/railties/lib/rails/generators/rails/app/app_generator.rb
@@ -159,10 +159,6 @@ module Rails
remove_file "config/initializers/cookies_serializer.rb"
end
- unless assets_config_exist
- remove_file "config/initializers/assets.rb"
- end
-
unless csp_config_exist
remove_file "config/initializers/content_security_policy.rb"
end