mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix script/console --sandbox warning. [#1194 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
This commit is contained in:
parent
d69b4b7bea
commit
aa4a7c3530
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
ActiveRecord::Base.send :increment_open_transactions
|
||||
ActiveRecord::Base.connection.increment_open_transactions
|
||||
ActiveRecord::Base.connection.begin_db_transaction
|
||||
at_exit do
|
||||
ActiveRecord::Base.connection.rollback_db_transaction
|
||||
ActiveRecord::Base.send :decrement_open_transactions
|
||||
ActiveRecord::Base.connection.decrement_open_transactions
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue