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
end end
if connection_class.connection.respond_to?(:begin_transaction) if connection_class.connection.respond_to?(:begin_transaction)
connection_class.connection.begin_transaction joinable: false connection_class.connection.begin_transaction :joinable => false
else else
connection_class.connection.begin_db_transaction connection_class.connection.begin_db_transaction
end end

View file

@ -43,8 +43,8 @@ module DatabaseCleaner
end end
supported_configurations = [ supported_configurations = [
{ url: 'mysql:///', connection_options: db_config['mysql'] }, { :url => 'mysql:///', :connection_options => db_config['mysql'] },
{ url: 'postgres:///', connection_options: db_config['postgres'] } { :url => 'postgres:///', :connection_options => db_config['postgres'] }
] ]
supported_configurations.each do |config| supported_configurations.each do |config|