Skip to content

Commit

Permalink
prefer require_relative over require + File.expand_path
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Mar 10, 2016
1 parent 2506c79 commit 55984af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/generators/rails/app/templates/Rakefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 55984af

Please sign in to comment.