mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Use ruby 1.8 syntax
This commit is contained in:
parent
bceb09bc87
commit
cda982c9b4
2 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ module DatabaseCleaner::ActiveRecord
|
|||
end
|
||||
end
|
||||
if connection_class.connection.respond_to?(:begin_transaction)
|
||||
connection_class.connection.begin_transaction joinable: false
|
||||
connection_class.connection.begin_transaction :joinable => false
|
||||
else
|
||||
connection_class.connection.begin_db_transaction
|
||||
end
|
||||
|
|
|
@ -43,8 +43,8 @@ module DatabaseCleaner
|
|||
end
|
||||
|
||||
supported_configurations = [
|
||||
{ url: 'mysql:///', connection_options: db_config['mysql'] },
|
||||
{ url: 'postgres:///', connection_options: db_config['postgres'] }
|
||||
{ :url => 'mysql:///', :connection_options => db_config['mysql'] },
|
||||
{ :url => 'postgres:///', :connection_options => db_config['postgres'] }
|
||||
]
|
||||
|
||||
supported_configurations.each do |config|
|
||||
|
|
Loading…
Reference in a new issue