/ Published in: Rails

Use rescue_from ActiveRecord::RecordNotUnique when DB transaction fail on uniqueness check
Expand |
Embed | Plain Text
rescue_from ActiveRecord::RecordNotUnique, :with => :my_rescue_method .... protected def my_rescue_method ... end
You need to login to post a comment.