Fixed delayed job issue
This commit is contained in:
		
							parent
							
								
									06918e1799
								
							
						
					
					
						commit
						23e839bedf
					
				| @ -169,7 +169,7 @@ class UserMailer < ActionMailer::Base | |||||||
| 
 | 
 | ||||||
|   def self.send_mail(*args) |   def self.send_mail(*args) | ||||||
|     if Rails.env.preview? || Rails.env.production? |     if Rails.env.preview? || Rails.env.production? | ||||||
|       delay(Rails.env).send(*args) |       delay(queue: Rails.env.to_s).send(*args) | ||||||
|     else |     else | ||||||
|       send(*args).deliver_now |       send(*args).deliver_now | ||||||
|     end |     end | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user