diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2005-11-10 00:16:23 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2005-11-10 00:16:23 +0000 |
commit | c955f378de859bf433fc56d877050efa5d11c691 (patch) | |
tree | 1e62576acfd5bebff6e02fe375110ac321e6b713 /activerecord/lib | |
parent | 73a697c38a842dfa725185b73af3b04a49ba3d3f (diff) | |
download | rails-c955f378de859bf433fc56d877050efa5d11c691.tar.gz rails-c955f378de859bf433fc56d877050efa5d11c691.tar.bz2 rails-c955f378de859bf433fc56d877050efa5d11c691.zip |
Fix sqlite adaptor's detection of missing dbfile or database declaration
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2962 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb index 3a53b59d1a..adb60cd49f 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb @@ -47,7 +47,7 @@ module ActiveRecord def parse_config!(config) config[:database] ||= config[:dbfile] # Require database. - unless config.has_key?(:database) + unless config[:database] raise ArgumentError, "No database file specified. Missing argument: database" end |