activerecord-rescue_from_duplicate
activerecord-rescue_from_duplicate copied to clipboard
Understanding RecordNotSaved
Hi 👋🏼
I read in the README that this gem will throw a RecordNotSaved exception on create!
. I would like to understand why is that the case instead of returning a RecordInvalid and where is this in the code of this gem (I cannot seem to find any references to RecordNotSaved besides tests).
I have an issue where a service is concurrently trying to create two instances of the same model and I got the feeling this gem is the one responsible for throwing the RecordNotSaved exception I'm getting 👀
Thanks!