aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-03-10 07:27:59 +0100
committerXavier Noria <fxn@hashref.com>2016-03-10 07:34:01 +0100
commit55984afe2cbf59f2620c09aa394da08b3ecd4612 (patch)
treecaa213ff524deba1cf2dd9668134e5f91047b60b
parent2506c7979306f25a4971f6e4c5c1d79b0c2843a5 (diff)
downloadrails-55984afe2cbf59f2620c09aa394da08b3ecd4612.tar.gz
rails-55984afe2cbf59f2620c09aa394da08b3ecd4612.tar.bz2
rails-55984afe2cbf59f2620c09aa394da08b3ecd4612.zip
prefer require_relative over require + File.expand_path
-rw-r--r--railties/lib/rails/generators/rails/app/templates/Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/Rakefile b/railties/lib/rails/generators/rails/app/templates/Rakefile
index ba6b733dd2..e85f913914 100644
--- a/railties/lib/rails/generators/rails/app/templates/Rakefile
+++ b/railties/lib/rails/generators/rails/app/templates/Rakefile
@@ -1,6 +1,6 @@
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
-require File.expand_path('../config/application', __FILE__)
+require_relative 'config/application'
Rails.application.load_tasks