activerecord-rescue_from_duplicate icon indicating copy to clipboard operation
activerecord-rescue_from_duplicate copied to clipboard

Understanding RecordNotSaved

Open geclos opened this issue 3 years ago • 0 comments

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!

geclos avatar Nov 23 '21 14:11 geclos