diff options
author | Teddy Wing | 2017-05-01 04:08:58 +0200 |
---|---|---|
committer | Teddy Wing | 2017-05-01 04:08:58 +0200 |
commit | ad3b6c7e69470a2b5bd68c7cafa170332b213b92 (patch) | |
tree | b9c107610af27764a51f993191ae622babe7011a | |
parent | 96b181b74aeac226d45a1f4d4a13488931b2b72d (diff) | |
download | dbshell-rails-ad3b6c7e69470a2b5bd68c7cafa170332b213b92.tar.bz2 |
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
-rw-r--r-- | lib/dbshell/rails.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |