diff options
author | Teddy Wing | 2017-04-29 22:30:06 +0200 |
---|---|---|
committer | Teddy Wing | 2017-04-29 22:30:06 +0200 |
commit | ff2d18994bc5d885362b077fd6c70410b33a9605 (patch) | |
tree | 127120d02554ab7c051afab446cf2a536f0dbce0 /lib | |
parent | 46b019abd520870ab159b60c03c45675f64dd88a (diff) | |
download | dbshell-rails-ff2d18994bc5d885362b077fd6c70410b33a9605.tar.bz2 |
Move `DBShell::InvalidDatabaseAdapter` to the `Client` module
Now that we have a `Client` module
(46b019abd520870ab159b60c03c45675f64dd88a), it makes so much more sense
to put this error class inside it.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dbshell/client/database.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/dbshell/client/database.rb b/lib/dbshell/client/database.rb index 35cb9ee..b39581f 100644 --- a/lib/dbshell/client/database.rb +++ b/lib/dbshell/client/database.rb @@ -11,7 +11,7 @@ module DBShell when 'postgresql' DBShell::Client::Postgres else - raise DBShell::InvalidDatabaseAdapter + raise InvalidDatabaseAdapter end end @@ -21,8 +21,8 @@ module DBShell .runshell(connection_params) end end - end -end -class DBShell::InvalidDatabaseAdapter < StandardError; end + class InvalidDatabaseAdapter < StandardError; end + end +end |