diff options
author | Teddy Wing | 2017-04-29 23:15:00 +0200 |
---|---|---|
committer | Teddy Wing | 2017-04-29 23:15:00 +0200 |
commit | d976bb250e81c48f95eee50130e17c92a3e20a32 (patch) | |
tree | 00f26a2e3e7f0bb10842b7f6bdb6f57829e45c88 | |
parent | b32dfa416313a762c3e74bdd1692b36001bfb050 (diff) | |
download | dbshell-rails-d976bb250e81c48f95eee50130e17c92a3e20a32.tar.bz2 |
rails.rb: Simplify the Rake task loader call
Since we only have a single *.rake file, we can get away with making
this less general. Doing so condenses what was there previously into a
single line and is arguably more explicit.
-rw-r--r-- | lib/dbshell/rails.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/dbshell/rails.rb b/lib/dbshell/rails.rb index 53ba80a..30d17be 100644 --- a/lib/dbshell/rails.rb +++ b/lib/dbshell/rails.rb @@ -1,13 +1,6 @@ require "dbshell/rails/version" -Dir[ - File.join(File.dirname(__FILE__), - 'rails', - 'tasks', - '**/*.rake') -].each do |rake| - load rake -end +load File.expand_path('../rails/tasks/dbshell.rake', __FILE__) module DBShell module Rails |