diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-16 15:20:01 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-16 15:20:01 -0300 |
commit | e5f840ca4625a1a4fc7202202e1645aba30af38c (patch) | |
tree | 64752d760dfdd7ed583fcbea4f7e0983fa76c82d | |
parent | 78399ad726780f8864889558b795d1f528a3e078 (diff) | |
download | rails-e5f840ca4625a1a4fc7202202e1645aba30af38c.tar.gz rails-e5f840ca4625a1a4fc7202202e1645aba30af38c.tar.bz2 rails-e5f840ca4625a1a4fc7202202e1645aba30af38c.zip |
Reuse the force_clear_transaction_record_state
-rw-r--r-- | activerecord/lib/active_record/transactions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/transactions.rb b/activerecord/lib/active_record/transactions.rb index 717b463c5b..9f4532b316 100644 --- a/activerecord/lib/active_record/transactions.rb +++ b/activerecord/lib/active_record/transactions.rb @@ -355,7 +355,7 @@ module ActiveRecord # Clear the new record state and id of a record. def clear_transaction_record_state #:nodoc: @_start_transaction_state[:level] = (@_start_transaction_state[:level] || 0) - 1 - @_start_transaction_state.clear if @_start_transaction_state[:level] < 1 + force_clear_transaction_record_state if @_start_transaction_state[:level] < 1 end # Force to clear the teansaction record state. |