Merge pull request #6346 from oscardelben/patch-9
Remove useless check of adapter
This commit is contained in:
commit
20f049fb50
@ -21,10 +21,6 @@ def sqlite3_connection(config) # :nodoc:
|
|||||||
config[:database] = File.expand_path(config[:database], Rails.root)
|
config[:database] = File.expand_path(config[:database], Rails.root)
|
||||||
end
|
end
|
||||||
|
|
||||||
unless 'sqlite3' == config[:adapter]
|
|
||||||
raise ArgumentError, 'adapter name should be "sqlite3"'
|
|
||||||
end
|
|
||||||
|
|
||||||
db = SQLite3::Database.new(
|
db = SQLite3::Database.new(
|
||||||
config[:database],
|
config[:database],
|
||||||
:results_as_hash => true
|
:results_as_hash => true
|
||||||
|
Loading…
Reference in New Issue
Block a user