gitmyhub

validates_nested_uniqueness

Ruby ★ 1 updated 14y ago

Allows you to add a uniqueness constraint on an attribute so that when the model is on the other side of a has_many relationship the uniqueness will be respected (in nested circumstances). Rails built-in uniqueness works by issuing an SQL query so in memory objects are not validated properly.

No plain-English explanation yet — one is being written right now. Check back in a minute.