method

commit_records

commit_records()
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 124
      def commit_records
        ite = records.uniq
        while record = ite.shift
          if @run_commit_callbacks
            record.committed!
          else
            # if not running callbacks, only adds the record to the parent transaction
            record.add_to_transaction
          end
        end
      ensure
        ite.each { |i| i.committed!(should_run_callbacks: false) }
      end