Return to Snippet

Revision: 68582
at January 21, 2015 23:11 by yaworsk


Initial Code
rescue_from ActiveRecord::RecordNotUnique, :with => :my_rescue_method
....
protected
 def my_rescue_method
   ...
 end

Initial URL

                                

Initial Description
Use rescue_from ActiveRecord::RecordNotUnique when DB transaction fail on uniqueness check

Initial Title
Rescuing From RecordNotUnique

Initial Tags
validation

Initial Language
Rails