lib/isolator/errors.rb in isolator-0.1.0.pre vs lib/isolator/errors.rb in isolator-0.1.0.pre2

- old
+ new

@@ -16,6 +16,10 @@ class BackgroundJobError < UnsafeOperationError MESSAGE = "You are trying to enqueue background job inside db transaction. " \ "In case of transaction failure, this may lead to data inconsistency and unexpected bugs" end + + class MailerError < UnsafeOperationError + MESSAGE = "You are trying to send email inside db transaction." + end end