File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 
activerecord/lib/active_record Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ def save_with_transactions(perform_validation = true) #:nodoc:
147147    end 
148148
149149    def  save_with_transactions!  #:nodoc: 
150-       rollback_active_record_state!  {  transaction  {  save_without_transactions!  }  } 
150+       rollback_active_record_state!  {  self . class . transaction  {  save_without_transactions!  }  } 
151151    end 
152152
153153    # Reset id and @new_record if the transaction rolls back. 
@@ -175,7 +175,7 @@ def rollback_active_record_state!
175175    # instance. 
176176    def  with_transaction_returning_status ( method ,  *args ) 
177177      status  =  nil 
178-       transaction  do 
178+       self . class . transaction  do 
179179        status  =  send ( method ,  *args ) 
180180        raise  ActiveRecord ::Rollback  unless  status 
181181      end 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments