From d976bb250e81c48f95eee50130e17c92a3e20a32 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 29 Apr 2017 23:15:00 +0200 Subject: 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. --- lib/dbshell/rails.rb | 9 +-------- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3