diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2017-05-31 14:55:28 -0700 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2017-05-31 14:58:19 -0700 |
commit | 4f3624fa319dbd7b86338d99669762ed06a9a766 (patch) | |
tree | 40cf7a740c56abe8a92574b1788d1b485b85f332 | |
parent | 908b136cf27aeb38b06dc98e7d2215d852ffc962 (diff) | |
download | rails-4f3624fa319dbd7b86338d99669762ed06a9a766.tar.gz rails-4f3624fa319dbd7b86338d99669762ed06a9a766.tar.bz2 rails-4f3624fa319dbd7b86338d99669762ed06a9a766.zip |
Remove the pathname dependency from bin/update and bin/setup
We don't get any benefit from it at all.
-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 560cc64a3f..ee9d077c30 100644 --- a/railties/lib/rails/generators/rails/app/templates/bin/setup.tt +++ b/railties/lib/rails/generators/rails/app/templates/bin/setup.tt @@ -1,9 +1,8 @@ -require 'pathname' require 'fileutils' include FileUtils # path to your application root. -APP_ROOT = Pathname.new File.expand_path('..', __dir__) +APP_ROOT = File.expand_path('..', __dir__) def system!(*args) system(*args) || abort("\n== Command #{args} failed ==") 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 0aedf0d6e2..5b6e50883e 100644 --- a/railties/lib/rails/generators/rails/app/templates/bin/update.tt +++ b/railties/lib/rails/generators/rails/app/templates/bin/update.tt @@ -1,9 +1,8 @@ -require 'pathname' require 'fileutils' include FileUtils # path to your application root. -APP_ROOT = Pathname.new File.expand_path('..', __dir__) +APP_ROOT = File.expand_path('..', __dir__) def system!(*args) system(*args) || abort("\n== Command #{args} failed ==") |