diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-01-01 10:57:39 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-01-01 10:57:39 +0900 |
commit | 4e5a96dd292439e9bd525a645427b0a559a13608 (patch) | |
tree | 44049100f21be2bb1a2f4e3a7c98ce3b9c52711d /railties/lib/rails/generators/rails | |
parent | e632c2fa4cb60072a778ce95c952a0fa95e5b074 (diff) | |
download | rails-4e5a96dd292439e9bd525a645427b0a559a13608.tar.gz rails-4e5a96dd292439e9bd525a645427b0a559a13608.tar.bz2 rails-4e5a96dd292439e9bd525a645427b0a559a13608.zip |
remove unnecessary `remove_file`
It deletes the `app/mailers` directory itself, it is not necessary to delete
the file individually.
https://github.com/rails/rails/blob/master/railties/lib/rails/generators/rails/app/app_generator.rb#L329
Diffstat (limited to 'railties/lib/rails/generators/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index 9ae48b3648..eb66b0b16a 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -323,7 +323,6 @@ module Rails def delete_action_mailer_files_skipping_action_mailer if options[:skip_action_mailer] - remove_file "app/mailers/application_mailer.rb" remove_file "app/views/layouts/mailer.html.erb" remove_file "app/views/layouts/mailer.text.erb" remove_dir "app/mailers" |