>
> # update_attribute is expected to update the specified attribute, not 
> other ones. Thus it is violating POLA
>

This is why you never want to rely on validates_uniqueness_of. It's 
essentially a convenience for generating pretty error messages. Use your 
DB's unique constraints to validate conditions dependent on other records 
in the relation (such as uniqueness). 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to