On Tue, Mar 5, 2013 at 7:32 PM, byrnejb <[email protected]> wrote:

> I have this code in a working RoR-3.1 app:
>
>   # save
>   #
>   # Override AR save method to catch DBMS specific errors
>   # such as uniqueness constraint violations
>

Where is this code? in a model, in module that is included into various
models, somewhere else?

As an aside recent versions of rails raise ActiveRecord::RecordNotUnique in
such cases, although this is a subclass of ActiveRecord::StatementInvalid
so shouldn't change behaviour as far as you're concern. You're also
changing the signature of save although I don't think that is related to
the problem at hand.

Fred

>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to