Use ruby 1.8 syntax

This commit is contained in:
Daniel Gaytan 2014-07-10 12:31:09 -05:00
parent bceb09bc87
commit cda982c9b4
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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|