Sha256: 379b7f60e0412c25b3aff9cf295c0ed2a303ff8db180738eafe22b92e63ba767
Contents?: true
Size: 483 Bytes
Versions: 14
Compression:
Stored size: 483 Bytes
Contents
# Load the rails application require File.expand_path('../application', __FILE__) # Initialize the rails application Dummy::Application.initialize! ## Explicitly remove AR transactions during tests ## if Rails.env.test? # Force the loading of AR stuff ActiveRecord::Base.connection.execute('SELECT 1') # Remove transactions ActiveRecord::ConnectionAdapters::Mysql2Adapter.class_eval do def begin_db_transaction end def commit_db_transaction end end end
Version data entries
14 entries across 14 versions & 1 rubygems