From ad3b6c7e69470a2b5bd68c7cafa170332b213b92 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 1 May 2017 04:08:58 +0200 Subject: rails.rb: Simplify `load` call to include Rake task Thanks to the Patterns guide on rubygems.org, I now see that we don't have to use `__FILE__` at all. Cool! See: http://guides.rubygems.org/patterns/#requiring-files-relative-to-each-other --- lib/dbshell/rails.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dbshell/rails.rb b/lib/dbshell/rails.rb index 2404819..0e18f6b 100644 --- a/lib/dbshell/rails.rb +++ b/lib/dbshell/rails.rb @@ -1,6 +1,6 @@ require 'dbshell/rails/version' -load File.expand_path('../rails/tasks/dbshell.rake', __FILE__) +load 'dbshell/rails/tasks/dbshell.rake' module DBShell module Rails -- cgit v1.2.3