Displaying 1 result from an estimated 1 matches for "dontuseexceptionsforflowcontrol".
2013 Mar 07
1
Should ActiveRecord::RecordNotSaved attach the record in question?
I''m doing some work where I want to rescue ActiveRecord::RecordNotSaved
from a save! call nested deep in the code. The thing is there could
theoretically be failures here I want to pass through, and I want to
inspect the record in order to decide.
I figure a custom initializer on the exception class and a couple quick
patches here and there in the code would make it minimally