From 46b019abd520870ab159b60c03c45675f64dd88a Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 29 Apr 2017 22:21:01 +0200 Subject: Rename database client classes Update our class names to reflect the new file structure introduced in b700c1bef89a67a64f1040fb6bb03c0320eefe91. Use the module DBShell module Client end end syntax intead of `DBShell::Client` so that we don't have to define the `Client` module in a separate file and require it. Otherwise we'd get an error: lib/dbshell/client/sqlite3.rb:1:in `': uninitialized constant DBShell::Client (NameError) --- lib/dbshell/rails/tasks/dbshell.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/dbshell/rails/tasks') diff --git a/lib/dbshell/rails/tasks/dbshell.rake b/lib/dbshell/rails/tasks/dbshell.rake index c7d3a93..cc898a4 100644 --- a/lib/dbshell/rails/tasks/dbshell.rake +++ b/lib/dbshell/rails/tasks/dbshell.rake @@ -3,7 +3,7 @@ require 'dbshell/client/database' task :dbshell do env = ENV.fetch('RAILS_ENV', 'development') - DBShell::DatabaseClient.runshell( + DBShell::Client::Database.runshell( Rails.application.config.database_configuration[env] ) end -- cgit v1.2.3