Skip to content
This repository
Browse code

Merge pull request #6346 from oscardelben/patch-9

Remove useless check of adapter
  • Loading branch information...
commit 20f049fb50daee0c5e5a69b55b529af5737e8e3f 2 parents 379b110 + e8b8090
Piotr Sarnacki authored May 15, 2012
4  activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
@@ -21,10 +21,6 @@ def sqlite3_connection(config) # :nodoc:
21 21
         config[:database] = File.expand_path(config[:database], Rails.root)
22 22
       end
23 23
 
24  
-      unless 'sqlite3' == config[:adapter]
25  
-        raise ArgumentError, 'adapter name should be "sqlite3"'
26  
-      end
27  
-
28 24
       db = SQLite3::Database.new(
29 25
         config[:database],
30 26
         :results_as_hash => true

0 notes on commit 20f049f

Please sign in to comment.
Something went wrong with that request. Please try again.