diff options
author | Bruno Casali <brunoocasali@gmail.com> | 2018-09-17 19:22:11 -0300 |
---|---|---|
committer | Bruno Casali <brunoocasali@gmail.com> | 2018-09-17 19:22:11 -0300 |
commit | a725539de677adbea0ced19d65647e975dbd3f84 (patch) | |
tree | 5c7b09ec9755ae44f0c2992a5ead8100ffedfe5b /railties/lib | |
parent | 11581afc01927565d57dd0e0156e983f92f8c2e0 (diff) | |
download | rails-a725539de677adbea0ced19d65647e975dbd3f84.tar.gz rails-a725539de677adbea0ced19d65647e975dbd3f84.tar.bz2 rails-a725539de677adbea0ced19d65647e975dbd3f84.zip |
Remove "include FileUtils" sentence in setup/update bin files
According with rubocop style guide "Style/MixinUsage" is good to use only in
class/module not directly in file.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/bin/setup.tt | 3 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/bin/update.tt | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/bin/setup.tt b/railties/lib/rails/generators/rails/app/templates/bin/setup.tt index 233b5a1d95..955a424878 100644 --- a/railties/lib/rails/generators/rails/app/templates/bin/setup.tt +++ b/railties/lib/rails/generators/rails/app/templates/bin/setup.tt @@ -1,5 +1,4 @@ require 'fileutils' -include FileUtils # path to your application root. APP_ROOT = File.expand_path('..', __dir__) @@ -8,7 +7,7 @@ def system!(*args) system(*args) || abort("\n== Command #{args} failed ==") end -chdir APP_ROOT do +FileUtils.chdir APP_ROOT do # This script is a starting point to setup your application. # Add necessary setup steps to this file. diff --git a/railties/lib/rails/generators/rails/app/templates/bin/update.tt b/railties/lib/rails/generators/rails/app/templates/bin/update.tt index 99c2430bc6..ed17959e1d 100644 --- a/railties/lib/rails/generators/rails/app/templates/bin/update.tt +++ b/railties/lib/rails/generators/rails/app/templates/bin/update.tt @@ -1,5 +1,4 @@ require 'fileutils' -include FileUtils # path to your application root. APP_ROOT = File.expand_path('..', __dir__) @@ -8,7 +7,7 @@ def system!(*args) system(*args) || abort("\n== Command #{args} failed ==") end -chdir APP_ROOT do +FileUtils.chdir APP_ROOT do # This script is a way to update your development environment automatically. # Add necessary update steps to this file. |